Syntax
Public Function GetGUIObject(formID As String, controlName As String, Prop_ID As ENUM_GUI_PROPERTY, ByRef prop_Value As Variant) As Boolean
Description
This function is used to get into prop_Value the form control value according to providing property ID.
Parameters
Key |
Description |
formID |
Form identifier, must be a number, value of type String
|
controlName |
Form Control name to get property value for it, value of type String
|
prob_ID |
Property to get it value for form control, value of type ENUM_GUI_PROPERTY |
prob_Value |
Result value for requested property, value of type variant |
Return value
Return true if get the property value for GUI control, Otherwise returns false. In order to get an error, call GetLastError () function.
Sample
Public Sub main()
Dim formId
formId = "2"
Dim prop_value
CreateVTLForm Cstr (formId), false,"Test"
CreateVTLControl Cstr (formId),"TextBox”, GUI_TEXT_BOX
SetGUIObject Cstr (formId), "TextBox", GUI_PROPERTY_Text,"Welcome at VTL"
GetGUIObject Cstr (formId), "TextBox", GUI_PROPERTY_Text, prop_value
AlertMessage (prop_value) ‘return Welcome at VTL
End Sub
See Also
Back to VTL Client Script Index
|