Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointer
Message
 
 
À
05/10/1999 08:18:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00272636
Message ID:
00272659
Vues:
23
>Hello:
>
>I'm trying to keep my record pointer at the same position when
>I call FormB from FormA's edit button.
>
>If I click in my grid on formA and highlight a record(i.e. recno #)
>and then hit my edit button, this calls formB but goes to beginning
>of file.
>
>I'm using default datasession. My grid is set up as follows:
>
>Link Master - Gisum
>Recordsource - Gidetail
>childorder - sessionkey
>relationexp - gisum.sessionkey
>
>On my formB users search a client table for the existance of a client
>and can add a gidetail record for this or add a new client and a gidetail record.
>
>I'm on the correct recno on Form A but when formb loads it goes to the
>beginning of file. How can I force this to stay on the same record.
>Any input would be appreciated. Thanks.

Since your are using Default Datasession, FormB will be using the same datasession as FormA. If FormB also uses your table from FormA, whatever you do in FormB affects tat table's record pointer. If you used Private DataSessions, you could prevent this. All you need to do is provide information for FormB to use in setting up the tables to display the data you want.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform