Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing form controls from a .PRG program
Message
From
14/07/1997 01:37:57
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
 
To
14/07/1997 01:27:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00039795
Message ID:
00039799
Views:
36
>>>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
Map
View

Click here to load this message in the networking platform