mustBeValidVariableName

Checks that value is valid variable name or raise an error.

Syntax

  • mustBeValidVariableName(var)

  • mustBeValidVariableName(var, argPosition)

  • C++: void mustBeValidVariableName(const ArrayOfVector& args, int argPosition)

Input argument

  • var - a variable: string or characters array.

  • argPosition - a positive integer value: Position of input argument.

Description

mustBeValidVariableName checks that value is valid variable name or raise an error.

Example

mustBeValidVariableName('8t')
mustBeValidVariableName('t8')
mustBeValidVariableName("t8")

See also

isvarname.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated