Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Textbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00151949
Message ID:
00152281
Views:
16
>I have a textbox where I want the default type to be numeric. I know I can put a 0 in the value property of the textbox, but I don't want the zero to be displayed in the textbox initially. Is there another way to make the textbox numeric? or is there a way to not show the zero initially?
>
>Thanks,
>
>Paul

I have an app running now for a user that absolutely insisted all fields be blanked initially including numerics. This is what made her happiest:

ControlSource lcPayCode
InputMask 999999999
Value (None)

In the Valid Method:

lnPayCode = VAL(ALLTRIM(THIS.VALUE))

It is a PITA to change formats back and forth but I have a happy user.

HTH
Bob Kocher
www.swfox.net
Start making your plans now to attend Southwest Fox 2006
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform