Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Problem
Message
 
À
06/12/2004 06:19:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
00967077
Message ID:
00967383
Vues:
7
>>>In the keypress, put someting like this:
>>>do case
>>>  case len(trim(this.value))>50
>>>     this.height=48
>>>  case len(trim(this.value))>25
>>>     this.height=32
>>>  otherwise
>>>     this.height=16
>>>endcase
>>In this case, I thint that sample below is very interesting:
>>this.height = ((Int(len(trim(this.value))) / 26) + 1) * 16
>>What do you think?
>Yes, that will do, I guess.

Or instead of LEN()/16, you could use ThisForm.TextWidth().
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform