|
Post by Carl Gundel - admin on Jan 10, 2009 11:05:32 GMT -5
Okay, I've figured out why we get the a message not understood runtime error for the following code. We have a fix for it in the next release and a workaround (see below). SUB LoginUser LocationMarker = 12 CustomerUserName$ = "" [LoginUser] [ShopperHasLoggedIn] END SUB There is a bug in the code for subs that have branch labels. Here is another example: call testBranch print "done"
sub testBranch for x = 1 to 10 print x if x = 5 then [asdf] next x [asdf] end sub To work around this you can just cheat and compile your code inside another block of code, like so: call testBranch print "done"
sub testBranch if 1 then for x = 1 to 10 print x if x = 5 then [asdf] next x [asdf] end if end sub Branch labels at the highest level in a sub cause the problem, so putting the code inside another block (like the if 1 then/end if block shown which will always execute its contents) will make it work. We will have a new release in a few weeks that will fix this bug and a few others. -Carl
|
|