Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting INT to Logical
Message
De
19/03/2007 13:43:14
 
 
À
19/03/2007 13:21:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01205632
Message ID:
01205650
Vues:
17
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform