Announcement

Collapse
No announcement yet.

compiler feature - or just a tired programmer?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Michael Mattias
    replied
    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.

    Leave a comment:


  • Chris Holbrook
    replied
    it's a method.

    Leave a comment:


  • Dale Yarker
    replied
    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:


  • Chris Holbrook
    replied
    Originally posted by Dale Yarker View Post
    If after the "THEN", then different answer is needed.
    'fraid so!

    Leave a comment:


  • Dale Yarker
    replied
    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,
    Last edited by Dale Yarker; 9 Nov 2008, 12:26 AM. Reason: added

    Leave a comment:


  • Mark Farrar
    replied
    just this

    at first glance ...

    no END IF

    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)
    gets me a 526 error (period not allowed)

    but this
    Code:
         IF WL(i).zposn > Wl(w).zposn THEN 
            ME.re_draw(i, redrawrect, 1)
         END IF
    doesn't - anyone else seen something similar?
Working...
X