Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   issues with if then else (http://www.chiefdelphi.com/forums/showthread.php?t=16514)

Andrew Rudolph 15-01-2003 08:39

issues with if then else
 
I am having issues with the new compiler, compiling if then else statements, this is what my code looks like:

Quote:

if rc_sw1 = 0 then
drive_l = 254
drive_r = 0
Else
drive_l = 200
drive_r = 200
EndIF
Every time i syntax check it, it says Expected a label. Anyone know why? Or are you having the same issues?

Andrew Rudolph 15-01-2003 09:15

never mind we forgot to add the ' {$PBASIC 2.5} code in the top


All times are GMT -5. The time now is 17:31.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi