Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5.0 - Record Pointer Moves when another form calledH
Message
De
18/08/1997 15:06:51
 
 
À
18/08/1997 15:00:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00045357
Message ID:
00045359
Vues:
46
>I hope someone can help me.
>
>Form A
>- private data session
>- table 1 with buffer mode 5
>- table 2 with buffer mode 5
>- a one to many relation set in a grid object on Form A relates Table 1 to Table 2.
>- a command button that adds a record to Table 1 then to Table 2 and calls Form B.
>
>Form B
>- default data session
>
>
>Problem: When I add a record to Table 1 then to Table 2(parent child records) and then call Form B to fill in information in Table 2 record VFP moves the record pointer in Table 2 during the call of Form B. I have tried everything I can think of to fix problem. If I turn off the relation in the grid object and then run it works fine but I need to have in enabled to display records properly. If someone else has had this problem please reply.
>
>Mike Laubach
>mlaubach@mt-solutions.com

Did you try this construction just to make sure that situation is clear?

Select Table2
nRecno=recno()
do form B && I guess it's modal form
Select Table2
go nRecno

The second thought: if you somehow move pointer in table A (during the call), pointer B will shift automatically, because of temp repationship.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform