Information générale
Catégorie:
Codage, syntaxe et commandes
Hi:
Thanks for your help with my record pointer...just have a little
snag.
I have set up Property on Form A(where grid is) - Currec
I have set up Property on Form B - Crec
In my command button to edit a record on FormA my code is:
select gidetail
thisform.currec = recno()
do formB with thisform.currec
In the init of FormB I have:
Parameter crecno
thisform.crec = crecno
Tracing through the debugger everything is working, it's passing
the correct value.
However, if I try to run the following code in any method(activate,
init,click etc...anywhere, i get a syntax error.
select gidetail
go thisform.crec
thisform.refresh()
I stuck a command button on FormB and pasted this code it and it works perfectly. If I select a record in my grid, hit my edit button
on FormA and then hit the command button on formb, everything's perfect.
But I need this to display without having to use a command button.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement