Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-functional textbox
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Multi-functional textbox
Divers
Thread ID:
00383562
Message ID:
00383562
Vues:
44
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform