Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing Grid from other form
Message
De
10/11/1997 23:47:43
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
 
 
À
10/11/1997 15:33:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00059328
Message ID:
00059465
Vues:
43
>>>>>>>>Hello.
>>>>>>>>I have some a problem with refreshing a Grid from other form.
>>>>>>>>For example. I have two forms. In the first form - "Form1" I have a list box with data.
>>>>>>>>In the second form "Form2" I have a Grid.
>>>>>>>>After dblClick or DragDrop methods I am append record to the table.
>>>>>>>>The grid has ControlSource from this table.
>>>>>>>>
>>>>>>>>SELE MyTable
>>>>>>>>APPEND BLANK
>>>>>>>>REPLACE MyTable.Fields1 WITH Data1
>>>>>>>>REPLACE MyTable.Fields2 WITH Data2
>>>>>>>>FORM2.GRID1.REFRESH
>>>>>>>>But..., I can see added records only when I press the Mouse button on the Grid.
>>>>>>>>If the buffering of the Table = 1 it is works Ok...,
>>>>>>>>but I change buffering to 5 and my grid will not be refreshed. :(
>>>>>>>>Thanks for any help.
>>>>>>>>Denis.
>>>>>>>
>>>>>>>Maybe Form2 has private datasession? Did you try to issue Tableupdate() before Grid.Refresh?
>>>>>>
>>>>>>Hello Edward.
>>>>>>I am use buffering = 5 because I want UPDATE or REVERT many records at once.
>>>>>>Denis.
>>>>>
>>>>>I understood this. My question was: do these two forms use the same default data session or different ones?
>>>>
>>>>Default data session both.
>>>
>>>You know, if the only problem that you need in additional mouse click on grid, then you can imitate it programmatically using MOUSE CLICK command. It might be a solution.
>>
>>Hmmm... I now tested this situation on VFP 5.0a at home, and it is works excellently (and without mouse click). In my office was installed VFP 5.0... maybe problem in version.. :(
>>Thanks Edward. Sorry to trouble you.
>
>Net problem, byl rad pogovorit'.

How do you solve this net problem? I seem to have the same problem with Denis because my saving of records at one station affects the records in the other station. VFP version doesn't seem to be the reason because I am using 5.0A.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform