Information générale
Catégorie:
Codage, syntaxe et commandes
>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement