DynamicObject - cWebDynamicObjectContainer
Returns handle of a dynamic object
Type: Function
Return Data Type: Handle
Parameters
| Parameter | Type | Description |
|---|---|---|
| sDynamicObjectId | String | Dynamic object to retrieve |
Syntax
Function DynamicObject String sDynamicObjectId Returns Handle
Call Example
Get DynamicObject sDynamicObjectId to HandleVariable
Description
Returns handle of a dynamic object.
Sample
This sample creates dynamic objects oGroup1 with two children, oForm1 and oForm2. It then destroys oGroup1, which in consequence, destroys its children.
Get CreateDynamicObject of oContainer (RefClass(cWebGroup)) "oGroup1" "" to hoGroup1
Send InitDynamicProp of hoGroup1 "piColumnCount" 8
Get CreateDynamicObject of oContainer (RefClass(cWebForm)) "oForm1" "oGroup1" to hoForm1
Send InitDynamicProp of hoForm1 "piColumnSpan" 8
Send InitDynamicProp of hoForm1 "psLabel" "My form1"
Get CreateDynamicObject of oContainer (RefClass(cWebForm)) "oForm2" "oGroup2" to hoForm2
Send InitDynamicProp of hoForm2 "piColumnSpan" 8
Send InitDynamicProp of hoForm2 "psLabel" "My form2"
Handle hoCurrentGroup
Get DynamicObject of oContainer "oGroup1" to hoCurrentGroup
Return Value
Handle of object