General information
Category:
Coding, syntax & commands
>>>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only