Xbasic
OBJECT.REFRESH_LAYOUT Function
Syntax
.Refresh_layout()
Description
Refreshes the layout. Same as hitting the F5 key or selecting Refresh Display from the menu.
The <OBJECT>.REFRESH_LAYOUT() method applies to:
- Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
- Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
The <OBJECT>.REFRESH_LAYOUT() method refreshes the layout, as if you had pressed F5 or selected Refresh Display from the menu. Attach the <OBJECT>.REFRESH_LAYOUT() method to the onactivate event to show changes to a form layout.
Example
dim ptr as P ptr = form.view("Customer Information") ptr.Refresh_Layout()
If you need to resynchronize the data as well, then you will need a bit more, but the form needs to be in view mode.
parent.commit()'Makes sure form is in view mode parent.resync() parent.refresh_layout()
Limitations
Desktop applications only.
See Also