Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting a textbox
Message
De
05/11/2002 21:22:22
 
 
À
05/11/2002 21:17:17
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00719139
Message ID:
00719145
Vues:
21
>Dear Ed,
>
>How about using transform function ??
>
>as:
>
>at form.init()
>
>:
>thisform.textbox.value=transform(thisform.textbox.value,"999,999,999"
>:
>
>I get the result still be in the format "999999999"
>
>What's wrong ??

TRANSFORM() returns a string, not a numeric, so if the control source is forced to be numeric, it isn't going to be a happy camper getting a string shoveled into it.

Did you try the textbox's InputMask property?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform