[futurebasic] Re: [FB] FB^3: Can you explain this?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2000 : Group Archive : Group : All Groups

From: BMichael@...
Date: Sat, 29 Jan 2000 01:18:49 EST
>In FB3 this code (without the code between the lines) will not detect 
>when the Rover enters the Exit, BUT if you add the code that is 
>between the lines, it will detect that the Rover is always in the 
>exit, where ever it is on the screen.

Do you have DIMmed vars only turned on? Are _all_ of these then global 
variables? It sounds like a variable location problem, where changing 
_anything_ in the code can change the result, since the variable contents 
are "undetermined". (Have you tried CLEAR LOCAL? Does that eliminate the 
variation adding the lines causes?) The only other thing I can think of 
right off hand is all your multi-statement lines. I'd at _least_ put a 
space before and after each colon, or better yet turn them into LONG 
IF's. The necessity of allowing QuickBasic labels has historically caused 
problems with colons "squished" into a line like this.

If DIMming the variables and adding spaces doesn't solve it, I'd insert a 
whole bunch of DEBUGSTRs and examine the value of the variables on 
entering the function and after every line within it, to see what's going 

If _that_ leaves you lost, and you can add a couple dozen lines to make 
this a compilable and runnable example, and send it to me privately, I'd 
be willing to take a look at it...