| Visual Basic | |
|---|---|
Function GetControlID( _ ByRef poVariableNameOrID As System.Object _ ) As System.Integer | |
| C# | |
|---|---|
System.int GetControlID( ref System.object poVariableNameOrID ) | |
| C++/CLI | |
|---|---|
System.int GetControlID( & System.Object^% poVariableNameOrID ) | |
Parameters
- poVariableNameOrID
- ID or name of the variable for which to get the control ID
Return Value
Control ID; 0 if the variable isn't used by any control in this cardIf more than one control is connected to the same variable, there is no way of knowing for which control this method returns an ID.
The returned ID can be passed to IEdmCard5::GetControl or IEdmVault5::GetObject in order to obtain IEdmCardControl5.
- S_OK: The method successfully executed.
- S_FALSE: The variable was not found.
SOLIDWORKS PDM Professional Version 5.2