Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus syntax
Message
De
11/03/1997 13:02:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00023700
Message ID:
00023744
Vues:
38
>>>I have a grid that displays the contents of a database.
>>>I can click on each row and have the record pointer
>>>move accordingly. Now, when I click on a record, I want
>>>to update the text boxes that represent each column in the grid, and have the focus set on the first text box.
>>>
>>>I have the following syntax in the click event:
>>>
>>>scatter memvar
>>>show gets
>>>
>>>my_field.setfocus
>>>
>>>I keep getting an error that my_field does not exist.
>>>
>>>What am I doing wrong ??
>>>
>>>TIA.
>>
>>If you have Visual Foxpro what's the idea to use SHOW GETS? It looks like very strange coding. Setfocus() is common method and should be referenced like Thisform.Grid.Column.Setfocus().
>
>thisform.my_field.setfocus should work (vfp needs to know where my_field is located)

Dave, my_field it's not a textbox, it's supposed to be grid cell.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform