Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending the cursor to the end of textfield !!!
Message
From
22/09/2000 09:18:57
 
 
To
22/09/2000 08:54:32
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00419663
Message ID:
00419676
Views:
23
>In my textfield.keypressed i have this
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>do case
>case nkeycode = F3
> this.value = "BUY"
>case nkeycode = F4
> this.value = "SEEL"
>case nkeycode = F5
> this.value = alltrim(this.value) + " EUR"
>case nkeycode = F6
> this.value = alltrim(this.value) + " USD"
>case nkeycode = F7
> this.value = alltrim(this.value) + " PTE"
>endcase
>keyboard chr(6) && END key
>
>the problem is the cursor stays allways in the beginnig of the textfield and i want it in the end.
>
>What to do ??? what to do ???

Get rid of the KEYBOARD; instead, try:

this.SelLength = 0
this.SelStart = LEN(this.value)+1
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform