IGlobalVariables.SetVariable Method
Function SetVariable( _
ByVal variableInfo As GlobalVariableInfo _
) As Boolean
This language is not supported or no code example is available.
Parameters
- variableInfo
- GlobalVariableInfo
The new properties of the variable.
Return Value
boolA value indicating whether the variable was really changed or created. false if no change was done, i.e. the variable already existed and its value, type and access were the same as in variableInfo.
Exception type | Condition |
---|---|
A problem occurred. |
This method creates a new variable if it doesn't exist yet.
The variables belong to several categories. Each category is identified with a 4 characters long prefix. There are some restrictions for some categories.
The variables with the 'SYS_' prefix cannot be created or deleted. You cannot change their access permission and their data type. You can only modify their value. Different values for the type and access will be ignored.
The variables with the 'GLV_' prefix can have only the read-write access. Different values for the access will be ignored.