Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
STR for logical field?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00490356
Message ID:
00490494
Vues:
8
>>>How to put logical into text? I forgot, sorry to ask. (sample: text+STR(numeric)+STR(logical)?)
>>>
>>>Chuck
>>
>>Transform() will do it. However, unlike Bill's suggestion, this gives you the periods around the value and you may not want this.
>
>And better yet, with Bill's suggestion you can return any value for the logical you want. IE .t. = "Yes" .f. = "No" or .t. = "True" .f. = "False" etc.

Look at the transform function and its codes. trasnform(lLogical,"Y") will return "Y"/"N"
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform