Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with IIF Statement
Message
From
29/10/2002 13:00:48
 
 
To
29/10/2002 12:55:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00716518
Message ID:
00716524
Views:
17
>This seems like it should be simple enough to do, yet I am having problems. I am trying to set the text for a label dynamically using an IIF statement. I don't get an error message with the statement, but it isn't working either. If I use and IF...ENDIF the code works fine, but it just looks so much more messy and complex then. Can someone take a look at this and help me figure out why it isn't working....
>
>IIF(lltranslate, thisform.labelbase1.Caption = "",thisform.labelbase1.Caption = "")
>
>TIA!

Joe,

Your statement does not do anything, ie thisform.labelbase1.Caption = "" is a logical value, not an assignment

thisform.labelbase1.Caption =iif( lltranslate, 'aa', 'bb')
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform