Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointer again
Message
De
06/10/1999 01:15:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00272774
Message ID:
00273061
Vues:
34
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
Fil
Voir

Click here to load this message in the networking platform