Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using alltrim in property control source = sub.sub_title
Message
From
26/02/2003 12:36:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00757801
Message ID:
00758233
Views:
20
>Thank you Fred,
>
>But my problem is when i try to enter a new record if i take my mouse cursor and put the cursor into the text field the cursor is starting from the middle and i will have spaces filled onto the right. and then if i type any text into the field the text will appear after the spaces lot of times it happens. All the text controls we have are class object's.
>
>Is there a way i can use a property for all the text boxes in the form where i define the cursor to start from the first char from right.
>
>
>Thank you.

Sure. In the GotFocus of the TextBox, you could add code something like this:
This.SelStart = LEN(ALLTRIM(this.Value))
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform