Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if grid has the focus?
Message
De
29/08/2004 04:24:27
 
 
À
29/08/2004 04:10:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00937360
Message ID:
00937363
Vues:
8
>hi gregory,
>
>i'm having a problem with recno(). here it is, in my application i have a login form that opens on top of my main form. form login opens table login.dbf.
>
>in my main form.init() and form.activate() i have,
>
>
>thisform.grid1.recordsource="select * from temp into cursor sys(2015)"
>
>
>
>i tried putting a set step on at column4.text1.click() and see alias(), it returns login.
>
>how can i make alias() return to the cursor of grid? i should check whether grid has the focus or not, if it does then select the cursor. where should i put this, in grid.click()?
>
>pls advise. TIA.
_________________________________________
hi Evelyn,

Could you make the recordsource of grid1 fixed ? I'm guessing a bit here, and I do not see the need for the 'select ... into sys(2015)'
(1) Form designer
grid1.recordsourceType = 1
grid1.recordsource = 'temp'

(2) form load
use temp && if not already open

(3) Form init
you do not need : thisform.grid1.recordsource="select * from temp into cursor sys(2015)"

(4) Form activate
you do not need : thisform.grid1.recordsource="select * from temp into cursor sys(2015)"
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform