Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending the cursor to the end of textfield !!!
Message
De
22/09/2000 09:18:57
 
 
À
22/09/2000 08:54:32
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00419663
Message ID:
00419676
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform