Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox value length
Message
From
12/01/2004 15:27:45
 
 
To
12/01/2004 14:54:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00866110
Message ID:
00866148
Views:
20
Hi Ramil

You have in fact answered your own question. If you alltrim the value, then the length of the result is the max number of letters you can enter. You should try padr(alltrim(yourfield),25).

>>>Hi all,
>>>
>>>I have a textbox which is 80 pixels wide without any other change to other properties. When I type in the textbox, it only allows me to enter 12 characters. I've set the textbox.value = space(25) on form init. I set the textbox value to a data from a table whose fieldlength is 100 char. If the field value is 10 characters long, I can only enter 10 chars; if it is 15, I can only enter 15 chars.
>>
>>Set the textbox.MaxLength property to 25.
>
>Thanks for the reply. I've done that and it still does not work.
>
>I've traced it to the code that assigns the value to the textbox where I ALLTRIMmed the field value. When I remove the alltrim, it accepts more than 25 chars or probably up to 100 (the fieldlength, I did not really verify this).
Previous
Reply
Map
View

Click here to load this message in the networking platform