Compartir a través de


Refresh Method

Repaints a form or control and refreshes any values, or refreshes a project's visual display.

 [Form.]Object.Refresh
-or-
Project.Refresh([lUpdateSCCStatus])

Parameters

  • lUpdateSCCStatus
    For a project, specifies if the source control status for each file under source control is updated. If lUpdateSCCStatus is true (.T.), the source control status for each file in the project under source control is updated. If lUpdateSCCStatus is false (.F.) or omitted, the source control status for each file isn't updated. lUpdateSCCStatus is ignored if no files in the project are under source control.

Remarks

Generally, painting a form or control is handled automatically while no events are occurring. Use the Refresh method when you want to update the form or control immediately.

Use Refresh to force a complete repaint of a form or control, and to update the value of a control. The Refresh method is useful when you want a form to be displayed while another form is loading or when you want to update the contents of a control. To update the contents of a combo box or a list box, use the Requery method.

Note   When a form is refreshed, all controls on the form are also refreshed. When a page frame is refreshed, only the active page is refreshed.

For projects, executing the Refresh method refreshes a project's visual display with any changes made to the project. For example, after programmatically adding files to the project with the Add method, you can execute the Refresh method to display the newly added files in the project.

See Also

Paint Event | Requery Method

Applies To: CheckBox | Column | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | FormSet | Grid | Header | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | Page | PageFrame | Project Object | _SCREEN | Spinner | TextBox | ToolBar