Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting INT to Logical
Message
From
19/03/2007 13:43:14
 
 
To
19/03/2007 13:21:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01205632
Message ID:
01205650
Views:
18
We are doing a convertion program and one of the fields we are converting is going from a Interger to a Logical or Bit. IIF() can not be done nicely for this.

What's wrong with
IIF( EMPTY( MyAlias.MyIntegerField ), .F., .T. )
or am i missing something?

As a matter of fact, you do not even need the IIF. You can use
NOT EMPTY( MyAlias.MyIntegerField )
depending on what your code looks like.
Previous
Reply
Map
View

Click here to load this message in the networking platform