Hello Melanie!
Melanie>>
Firstly, endif is a command all on it's own, to be used when you break up an if-then-else statement onto separate lines...
IF (ABS(But1-1000))<50 Then
But3=1
Else
But3=0
EndIf
Also, you have an unnescessary set of brackets... try...
IF ABS(But1-1000)<50 Then
Finally, If it still errors, make sure you have correctly defined But1 and But3.
<<
Thanks a million... you helped me solve the problem... I had to break down every little statement onto separate lines, and then it finally compiled through... It now looks like the following...
I just love fighing these little parannahs... <g>. I guess that is part of the learning curve of a different compiler...
IF ((ABS(But1-1000))<50) Then
But3=1
Else
But3=0
EndIF
IF ABS(But1-600)<50 Then
But2=1
Else
But2=0
EndIF
IF ABS(But1-300)<50 Then
But1=1
Else
But1=0
EndIF
IF(But3=1 AND StickyButton1=0) Then
StickyButton1=1
Else
IF(But3=1 AND STickyButton1=1) Then
StickyButton1=0
EndIF
EndIF
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks