Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add numeric string as property value?
Message
De
15/07/2009 18:31:24
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Divers
Thread ID:
01412603
Message ID:
01412611
Vues:
66
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform