Illegal string length constant for: <name>

You specified a length for a fixed-length string as one of the following:

  • An item that is not a literal or a constant (created with the Const statement)

    Change the length specifier to a literal or a constant.

  • A literal that is not an Integer or Long value, or a constant that does not have an Integer or Long value

    Use an Integer or Long literal, or a constant with an Integer or Long value.

  • A value not in the range 1 to 32767

Change the length specifier to a number within this range.