Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Left at textbox
Message
From
13/09/2008 07:06:02
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347321
Message ID:
01347323
Views:
12
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform