Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing form controls from a .PRG program
Message
De
14/07/1997 01:37:57
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
 
À
14/07/1997 01:27:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00039795
Message ID:
00039799
Vues:
34
>>>How do you refresh form controls e.g. grid controls from within a .PRG program ? Basically, the form has only 2 controls i.e. a read-only grid control and an exit button. The grid control's data is generated from a .PRG program and therefore needs to be refresh each time there is a new record. Any views and help would be appreciated.
>>>
>>>Thanks
>>
>>Try
>>
>>_screen.formname.grid.refresh
>
>Hi, thanks for your help. But the object (form) could not be referenced from the PRG. Any other ideas ?

You can try one more thing, put a check of some kind by taking a property like runprg

when you are calling the prg set it to true and once the control is returned from prg back to form

you can put

if thisform.runprg
thisform.grid.refresh
endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform