Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CAST() A String To A Bool
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01269594
Message ID:
01269611
Vues:
11
Did you try it?



>Does it return .F. ?
>
>>I'm reading in a value from an INI file, and it's string. Not sure why CAST() wouldn't
>>handle this.
>>
>>
>>>It does if you remove quotes. I guess the string "1" is not equivalent to .T.
>>>
>>>>Why doesn't this return .T.?
>>>>
>>>>
>>>>? CAST("1" AS Logical)
>>>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform