<OBJECT>.REFRESH_LAYOUT()

Syntax

<OBJECT>.REFRESH_LAYOUT()

Description

The <OBJECT>.REFRESH_LAYOUT() method applies to:

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.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

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()   

See Also

<OBJECT>.COMMIT(), <OBJECT>.RESYNCH()