Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Textbox Object
Message
From
17/11/2003 19:24:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
17/11/2003 14:41:27
General information
Forum:
Visual FoxPro
Category:
User groups
Miscellaneous
Thread ID:
00850742
Message ID:
00850824
Views:
20
>I am trying to type data in a textbox but I am limited on the amount of characters I can type. I have no controlsource assigned to this object and I have also used in the inputmask method. But I can only type in 12 characters and I need to type in at least 25 characters in this textbox.
>How can I do this?

If you don't set the MaxLength to anything, VFP calculates the allowable number of characters from the pixel width of the textbox combined with font size. Just set the MaxLength to what you want - max is 255. You can set it to any larger number you want, but it will still accept no more than 255 characters. If you need more than that, use an editbox. A single line editbox will look like a textbox, but it will allow chr(13) - so you'd need to catch that in KeyPress.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform