Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using alltrim in property control source = sub.sub_title
Message
De
26/02/2003 12:36:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00757801
Message ID:
00758233
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform