Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox value length
Message
De
12/01/2004 15:27:45
 
 
À
12/01/2004 14:54:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00866110
Message ID:
00866148
Vues:
19
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).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform