Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-functional textbox
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Multi-functional textbox
Miscellaneous
Thread ID:
00383562
Message ID:
00383562
Views:
45
Hi everyone,

I'm thinking, is it possible to create a textbox class, which would accept different data types. Obviously, the return value would be always a character type, but is it possible to simulate different data types by using Format and InputMask property.
E.g. abc - character field - txtUniversal.MaxLength=fsize(abc)
abc - numeric field -//- txtUniversal.InputMask=replicate('9',fsize(abc)) - BTW, how can I determine number of digits?

abc - logical ????
abc - date ?????
abc - datetime ????

Or it's a bad idea and better use different textbox classes for this?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform