Error Messages/42999

< Error Messages
Revision as of 23:00, 24 July 2025 by Lchrisman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example Error Message

Lexical error at line 1:
Choice( 'a'..'d', 1)
       ↑
The first parameter, «I», of Choice must be either an index identifier or the keyword Self.

Put the possible options in an index and use its identifier here, or put the options into the Domain attribute and use the keyword Self.

Description

This error appears when you pass something other than an index identifier or the keyword Self to a parameter that has been declared with the qualifiers Index SelfDomain. This applies to the first parameter of Choice and MultiChoice, and the «domain» parameter of Slider.

In each case, the parameter wants a list of options. In one usage, those options can be listed in an index. In the other, they appear in the Domain attribute and the keyword Self indicates to take them from there.

See also

Comments


You are not allowed to post comments.