namelengthmax

Return the maximum variable name length.

Syntax

  • R = namelengthmax

Output argument

  • R - a double: the maximum variable name length

Description

namelengthmax: Nelson allows 4096 as maximum length for variables and structures field names.

Examples

Working: identifier length 4096 characters

ID = ['A', char(double('0') * ones(1, namelengthmax -1 ))];
length(ID)
STR = [ID, ' = 3'];
execstr(STR)

Not Working: identifier length 4097 characters

ID = ['A', char(double('0') * ones(1, namelengthmax))];
length(ID)
STR = [ID, ' = 3'];
execstr(STR)

See also

execstr.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated