Re: [xHarbour-developers] Bug in SWITCH statement?

2017-04-24 Thread Enrico Maria Giordano


Il 24/04/2017 21:54, Gerald Drouillard ha scritto:

> I believe in xHarbour cVar can only be single character in a switch.

Yes, but why? In Harbour there is not that limit.

EMG

--
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers


[xHarbour-developers] Bug in SWITCH statement?

2017-04-24 Thread Enrico Maria Giordano
Sample:

FUNCTION MAIN()

 LOCAL cVar := "TEST"

 SWITCH cVar
 CASE "TEST"
 END

 RETURN NIL

Error:

xHarbour 1.2.3 Intl. (SimpLex) (Build 20170312)
Copyright 1999-2017, http://www.xharbour.org http://www.harbour-project.org/
test.prg(6) Error E0059  Invalid SWITCH Constant 'TEST'.

It compiles fine with Harbour.

EMG

--
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers