Is the switch/case construct operational? The highlighting works, but my coding doesn'tÂÃ, ???
it may have something to do with the Scintilla control. There are about a million and one settings you can change on the control. I would guess that with it being an alpha version things like that are not a priority and will probably get sorted out later. I dont think select / case is in the syntax. The correct method is select and case, as it is in IBasic.
Lewis
Actually it is as follows:
Select expr
{
case xx:
do something;
case yy:
do something else;
case zz:
case &ww:
do this;
default:
blah;
}
Which is close to C syntax. case& groups statments together. Each case statment must be terminated with a colon as above.
'switch' is highlighted because I used the default C highlighter in Scintilla, modified to include Aurora keywords.
Paul.
That does it.
"C++ in 10 Minutes" isn't turning out to be much of a bargainÂÃ, ;)
What I find works best is to try to find combinations of C and IB. For example:
struct x,1 {...
The keyword 'struct' is borrowed from C, the syntax of putting the packing in the format ",pack" is from IB, Aurora uses curly braces to designate blocks (C).
I'll probably enable the keyword 'switch' as an alias for 'select'. Just to aid in converting code.
Thanks, Paul. I tried using 'switch' and couldn't understand why it didn't work and thought maybe it wasn't implemented yet. ;D The alias would be useful.
It has been done ;)
In the next update you can use either 'switch' or 'select'