Function: ScriptEvaluate
- Updated2023-02-21
- 2 minute(s) read
Function: ScriptEvaluate
Determines the contents of a user command in the DIAdem Calculator.
ReturnValue = ScriptEvaluate(UserCmdName)
Input Parameters
| UserCmdName | Specifies a user command registered in DIAdem. |
Return Parameters
| ReturnValue | Returns the current contents of the user command as a text. |
Examples (Calculator)
The following example assumes that you have registered the script in DIAdem with the user command MyCommand.
| VBScript | Python |
Function MyCommand(MyPar) MyCommand = "Value: " & MyPar End Function
The following example line determines the contents of the user command MyCommand.
| VBScript | Python |
T1 = ScriptEvaluate("MyCommand(45.3)") 'T1 = Value: 45.3
| Note You cannot use the ScriptEvaluate function in scripts. |
| Note Refer to Using User Commands for information on how to define your own commands. |
Related Functions
Command: AddUserCommandToEvent | Command: RemoveUserCommandFromEvent | Command: VEnumIdx | Function: GetEnv | Function: IdentifierType | Function: MaxOrd | Function: Ord | Function: VEnum | Function: VIT | Function: VSA