- Contents
DesignerCOM API
II3IDVariables::AddVariable Method
Synopsis
Add a variable of the specified type. VariableType can be either a VT_UNKNOWN or VT_DISPATCH pointer to an existing II3IDType or it can be a VT_BSTR with the following format: <ModuleName>::<TypeName>
IDL Function Prototype
HRESULT AddVariable(
[in] BSTR NewVariableName,
[in] VARIANT VariableType,
[out, retval] II3IDVariable ** TheVariable
);
C/C++ Syntax
HRESULT AddVariable(BSTR NewVariableName, VARIANT VariableType, II3IDVariable ** TheVariable);
Parameters
- NewVariableName
-
The name of the new variable.
- VariableType
-
VariableType can be either a VT_UNKNOWN or VT_DISPATCH pointer to an existing II3IDType or it can be a VT_BSTR with the following format: <ModuleName>::<TypeName>
- TheVariable
-
The return value is an II3IDVariable variable object.