.....
goto [here1]
[here1]
goto [here2]
[here2]
IF X <= noofblinks goto {...}
and you can really notice the delay while searching for the label.
As a quick improvement a BREAK when the correct line is found would help speed it up.
Not sure how other basics do it but the population of an array with all the labels and there line number at start up, and then resolving the line number by looking up the array would be a lot faster.
//branching commands
if (Param0 == "goto")
{
for (int i = 0; i <= TotalNumberOfLines; i++) {
String gotoTest = BasicProgram(i);
gotoTest.trim();
if (gotoTest == Param1 | String(gotoTest + ":") == Param1)
{
RunningProgramCurrentLine = i - 1;
BREAK;
}
}
return;
}
Regards
Gerry