Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form refreshing
Message
 
 
À
23/08/2001 04:20:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00547690
Message ID:
00547901
Vues:
8
>>>I have created two Forms.
>>>Form1 have Grid on it and a command button for runing Form2.
>>>Form2 have text boxes with same table as Grid on Form1.
>>>When I click on button to run Form2, the data in text boxes are not the same as current record in Grid, they are not refreshing.
>>>How can I make that the text boxes in Form2 refresh with current record as in Grid on Form1?
>>
>>Set the Datasession property of Form2 to Default. This means that it will not create a new datasession and particpate in the datasession from which it was called (i.e. Form1's datasession). Any changes to the data in Form2 will automatically show up in Form1 (after refreshing).
>>
>>HTH.
>
>The Datassesion property of Form2 is set to Default, but it still doesn't working the way I wan't to.

How are you calling Form2? Do you use a form manager or simply a DO FORM call? For debugging purposes, you can add a button to each form and have it display a wait window with the record number of the alias in question. If they display two different record numbers then it isn't a matter of refreshing; it's a matter of the form's not participating in the same datasession of the initialization code in Form2 moves the record pointer.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform