Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Determine # of characters input in a field
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00759242
Message ID:
00759248
Views:
25
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.

>Allam,
>
>Your question is a but vague. If the user types abc into a textbox that has an inputmask of Replicate('X',30) then the length will be 30 or 3 depending how you check it.
>
>
>lnLen = LEN(TRIM(Thisform.Text1.Value)) && 3
>lnLen = LEN(Thisform.Text1.Value) && 30
>
>
>I used trim so that if the user enters " abc" the typed in spaces are counted.
>
>What value doid you want to see as a result?
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform