Error Messages/42735

< Error Messages
Revision as of 16:33, 31 July 2012 by Lchrisman (talk | contribs) (Created page with "= Example Error Message = :Lexical error while checking ''Distance'': :In the call to Table, the index ''City'' is listed more than once. You cannot use the same index for ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example Error Message

Lexical error while checking Distance:
In the call to Table, the index City is listed more than once. You cannot use the same index for more than one dimension of a Table.

Cause

A definition of a Table, DetermTable, IntraTable or ProbTable lists the same index twice, as in the following example definition where the index City is listed twice.

Table(City,City)

Any given index can only appear once as a table index.

Remedy

If you are trying to make a 2-D table -- for example, with the distances between pairs of cities, then you need to create a second index, e.g.:

Index City2 := CopyIndex(City)

and then define your table as

Table(City,City2)

Comments


You are not allowed to post comments.