ApplicationMgr.ConnectCommand
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
ApplicationMgr.ConnectCommand
Syntax
ApplicationMgr.ConnectCommand( uiObj, cmdKind, index = 0, opts = 0)
Return Value
A reference to an object that represents the new connection. Discarding the reference does not affect the connection. When the object is already connected with this type of connection, the existing connection is returned.
Purpose
Connects a control to the Application Manager control to make the connected control function as a command.
Remarks
You can connect TestStand User Interface buttons and checkboxes using this method.
To disconnect an existing connection, you must first obtain the ApplicationMgrConnections object from the ApplicationMgr.Connections property. Then, access the ApplicationMgrConnections.Command property to obtain the CommandConnections collection.
Parameters
uiObj As Object
[In] Specifies the button or checkbox control to which the command connects.
cmdKind As CommandKinds
[In] Specifies the type of command to connect.
index As Long
[In] Specifies an index into command sets. For example, when you connect to CommandKind_EntryPointSet , this parameter specifies the index of the entry point to use.
This parameter has a default value of 0 .
opts As Long
[In] Specifies a bitwise-OR combination of the CommandConnectionOptions constants.
This parameter has a default value of 0 .
See Also
ApplicationMgrConnections.Command