Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STR for logical field?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00490356
Message ID:
00490494
Views:
9
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform