Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Cells and Selecting Text
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00798578
Message ID:
00798678
Vues:
25
First, you want to make sure the textbox's SelectOnEntry is .T. In the click of the textbox put:
if this.parent.class = 'Column' and this.SelectOnEntry
   dodefault()
   This.SelStart = 0
   This.SelLength = 999
   NODEFAULT
endif
In the GotFocus of the textbox, put:
if this.SelectOnEntry
   dodefault()
endif 
>Fox Grid Masters~
>
>I have a grid that allows the user(s) to enter data dynamically. After entering the [first] record, the user hits enter or tab at the last field, and a new duplicate record is created.
>
>Here's the question, the second+ records I want to have the field highlighted and all its text selected so the user(s) can type over it or tab through to the next data element of the record. What code can accomplish this and what event should handle the code?
>
>Thanks in advance
>ML
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform