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:
01269600
Vues:
11
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)
>>>
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform