| Visual Basic | |
|---|---|
Function GetVar( _ ByVal lVarID As System.Integer _ ) As System.Object | |
| C# | |
|---|---|
System.object GetVar( System.int lVarID ) | |
| C++/CLI | |
|---|---|
System.Object^ GetVar( & System.int lVarID ) | |
Parameters
- lVarID
- ID of variable for which to get a value
Return Value
Value of a card variableThe task add-in calls this method to retrieve a data card variable value that is set by the user on the task details page on the client computer. To save and retrieve the variable, the add-in calls IEdmTaskProperties::SetVar and this method, respectively, during the processing of the EdmCmdType.EdmCmd_TaskSetup hook.
These data card variable values can also be retrieved when the task is executed on the server by calling IEdmTaskInstance::GetVar.
Card variables accessible by this method must be created using the administration tool card editor and are not related to the user-defined variables accessed by IEdmTaskProperties::GetValEx and IEdmTaskProperties::SetValEx.
- S_OK: The method successfully executed.
SOLIDWORKS PDM Professional 2010