Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add numeric string as property value?
Message
From
15/07/2009 18:31:24
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01412603
Message ID:
01412611
Views:
65
>>>>Can someone refresh my memory:
>>>>
>>>>I have a class property, I want to put in "1.00" (i.e. a string) as its value. If I type in 1.00, it's set to be a numeric. How would I enter the string "1.00" in this case?
>>>
>>>Try
>>>
>>>= "1.00" or set in run-time.
>>
>>I just discovered that myself a few seconds ago. It seems a little inelegant. I was hoping there might be a trick like typing a single quote ' before a number (like in Excel) to indicate that whatever follows is to be treated as a string.
>
>Not really - there seems to be no additional tricks.

Too bad. Thanks.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform