See what happens when "insufficient code shown?"
When asking for help one should always post code which is compilable, or what should compile but doesn't.
Announcement
Collapse
No announcement yet.
compiler feature - or just a tired programmer?
Collapse
X
-
If "ME.re_draw(i, redrawrect, 1)" is a SUB, then I don't understand how the IF/THEN/END IF format compiles without error. If it is a UDT array, then ??????
Leave a comment:
-
Originally posted by Dale Yarker View PostIf after the "THEN", then different answer is needed.
Leave a comment:
-
Looks like single line IF parser in the compiler has a problem with UDT members. Try:
IF (WL(i).zposn > Wl(w).zposn) THEN ME.re_draw(i, redrawrect, 1)
note added parens
Also there are some folks who think the single line IF format should never be used anyway. It's a subject that can lead to flame wars. I'll only say that I very rarely use it.
added: which period was cursor next to when you got the error? If after the "THEN", then different answer is needed.
Cheers,
Leave a comment:
-
compiler feature - or just a tired programmer?
this
Code:IF WL(i).zposn > Wl(w).zposn THEN ME.re_draw(i, redrawrect, 1)
but this
Code:IF WL(i).zposn > Wl(w).zposn THEN ME.re_draw(i, redrawrect, 1) END IF
Tags: None
Leave a comment: