Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 07 September 2020 10:11 AM


Public Function SetGUIObject(formID As String, controlName As String, prop_Id As ENUM_GUI_PROPERTY, prop_Value As Variant) As Boolean


This function is used to set a property to a specific GUI control according to given prop_Id value.


Key  Description 
formId Form identifier, must be a number , value of type String.
contorlName Control identifier to set the property for it ; if it was an empty string, the property is for the form, value of type String.
Prop_Id The property that want to change it for the given GUI control, can be one of the  ENUM_GUI_PROPERTY.
Prop_Value The value of the specified property , value of type Variant.

Return value

Returns true if the GUI control has been sat to the specified property. Otherwise, returns false. In order to get an error, call GetLastError() function.



Public Sub main()

 dim frmID

  frmID = "3500"

  CreateVTLForm CSTR(frmID) , false

  CreateVTLControl CSTR(frmID) , "lblA" , GUI_LABEL

  SetGUIObject CSTR(frmID) , "lblA" , GUI_PROPERTY_CAPTION , "Label One"

End Sub


See Also

Back to VTL Client Script Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions