Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Left at textbox
Message
De
13/09/2008 07:06:02
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01347321
Message ID:
01347323
Vues:
13
Hi Moises,

>How can I do so that all characters in my texbox begin at the left ?
>( prevent user from accidently add blank spaces at left)


To prevent user add blank spaces at left you can to do:
- In your TextBox's InteractiveChange method type this:
IF LEFT(this.Value, 1) = " "
	this.Value = ALLTRIM(this.Value)
ENDIF
- Other way is to type the code below in TextBox's LostFocus method:
this.Value = LTRIM(this.Value)
I hope this helps you.
Erick
Força Sempre!
Strength Always!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform