Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Determine # of characters input in a field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00759242
Message ID:
00759441
Vues:
15
Jim,

Thanks for your research.
I have a 'bad feeling' about this one :(.

>>Jim
>>
>>I wanted 'abc ' to return a length of 4 and 'abc' to return a length of 3.
>>If they typed in a leading space, I also wanted that to be included in the lenth.
>>
>
>Allan,
>
>I poked around a bit yesterday and as far as I can see you can get the length of the inputmask, or the length of the value without trailing spaces, but I could see any way to get the length to only include the trailing spaces that the user actually type. The only approach I can think of would be to build a textbox class that handled the issue for you. Probably a little code in the Keypress that updates a custom property used to count the charactyers typed by the user. That would give something like;
>
>
>lnStringLen = Thisform.Text1.ValueLength
>
>
>Where ValueLength is the custom property.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform