Deferred_View
See Also: CD_End_Object, Object, Activate_View, Activating Views on Start-Up, Creating a View
Purpose
To defer the creation of a view object until the first time it is accessed (called) by a user, and to link its access/creation to a desktop-level activation message.
This command is managed by the DataFlex Studio's Object Properties window and is typically not edited manually.
Syntax
Deferred_View {accessMessage} For Object {objectName} Is A {className}
:
CD_End_Object
Where:
- {accessMessage} is the name of the activation message.
- {objectName} is the name of the view object to be activated.
- {className} is the class of the object to be created.
What It Does
The Deferred_View command allows the view object to be created dynamically when called via its {accessMessage} (the first time it is activated), rather than being created automatically (yet not activated) when the program starts. This allows a running program to conserve resources by not consuming memory for deferred views until the first time they are opened.
Notes
- Before the object is used, its access message must be sent.
- Use the
CD_End_Objectcommand (instead ofEnd_Object) to end a deferred view.