See Also: CD_End_Object, Object, Activate_View, Activating Views on Start-Up, Creating a View
To defer 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.
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; and {className} is the class of the object to be created.
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.
Before the object is used, its access message must be sent.
Use the CD_End_Object command (instead of End_Object) to end a deferred view.