DIAdem API Reference

Function: ScriptEvaluate

  • Updated2023-02-21
  • 2 minute(s) read

Determines the contents of a user command in the DIAdem Calculator.

ReturnValue = ScriptEvaluate(UserCmdName)

Input Parameters

UserCmdNameSpecifies a user command registered in DIAdem.

Return Parameters

ReturnValueReturns 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.

VBScriptPython

 

Function MyCommand(MyPar)
  MyCommand = "Value: " & MyPar
End Function

The following example line determines the contents of the user command MyCommand.

VBScriptPython

 

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