Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If structure
Message
From
17/06/2008 12:18:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01324796
Message ID:
01324798
Views:
11
This message has been marked as the solution to the initial question of the thread.
There's an ENDIF missing...
IF CONFIG2.N5 = 1
   THISFORM.PRINT1
ELSE
   IF CONFIG2.N5 = 2
      THISFORM.PRINT2
   ENDIF
ENDIF
>Since Dbase III I don't need to use IF as below
>I've been using do case and IF with different structures
>
>Now I had to use it and, for my surprise, it does not work in VFP
>
>(endif missing)
>
>IF CONFIG2.N5 = 1
> THISFORM.PRINT1
> ELSE
> IF CONFIG2.N5 = 2
> THISFORM.PRINT2
> ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform