assign

Examples


The assign statement establishes a reference to a specific resource in the application.

Syntax

assign reference_field as reference to resource

Parameters

reference_field – A field with the reference control type to which the reference will be assigned.

resource – The resource to which a reference is being established.

Comments

A reference can be stored in a global field or local field that uses the reference control type. References can also be stored in local variables or passed as parameters having the type reference.

If you use a reference field as a hidden field on a window, be sure the SavedOnRestart property is set to true. If it is not set to true and the form or window is restarted, the reference field will be cleared and the reference it contains will be lost.



Documentation Feedback