The ControlByAlias function retrieves a reference to a control container searching the alias names of all controls of the form.
Syntax | ||||
ControlByAlias(AliasName) | ||||
Return value | ||||
Type |
Description | |||
Control |
The Control achieved via the alias or NoValue | |||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
AliasName |
String |
ByVal |
Alias name to archieve. |
Example:
Dim c As TCEPanels.Splitter
c := Form.ControlByAlias("CartSplitter").Object
c.OpenPanel2(AnimationTypes.AnimationDrag)
The example searches for a control with the alias Name CartSplitter under the displayed controls of Form at runtime. The OpenPanel2 function is called for the object of the control that is found.