April 26, 2024, 06:36:28 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


'break' invalid context

Started by Parker, December 11, 2005, 02:20:08 PM

Previous topic - Next topic

0 Members and 7 Guests are viewing this topic.

Parker

I have the following block of code:
while (true)
{
ch = GetChar();
if (ch = "]")
{
ch = GetChar();
if (ch = "'") break;
}
else if (ch = 0)
{
return TKERROR;
}
}

On the line if (ch = "'") break;
I get an invalid context error where it should be breaking out of the while loop.

Ionic Wind Support Team

'break' has limited use at the moment.  It's context based and doesn't weave itself backwards to find the correct context yet.  It is on my 'get back to it' list.  Which is the list I have when something gets frustrating ;)

Paul.

Ionic Wind Support Team