Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting a textbox
Message
From
05/11/2002 21:22:22
 
 
To
05/11/2002 21:17:17
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00719139
Message ID:
00719145
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform