Difference between revisions of "Error Messages/40107"
AManandhar (talk | contribs) (→Remedy) |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error message examples == | |
− | = Cause = | + | :<code>''An Edit Table function cannot be based on temporary indexes. Use the Array function instead.''</code> |
+ | |||
+ | == Cause == | ||
All indexes to edit tables should be global objects (variables with nodes), and you tried to define one with a temporary index. | All indexes to edit tables should be global objects (variables with nodes), and you tried to define one with a temporary index. | ||
Line 9: | Line 11: | ||
The following code would trigger this error by trying to define an edit table with a temporary index: | The following code would trigger this error by trying to define an edit table with a temporary index: | ||
− | <code> | + | :<code>Index IndexA := 1..4;</code> |
− | Index IndexA := 1..4;< | + | :<code>Table(IndexA)('Red', 'Yellow', 'Green', 'Blue');</code> |
− | Table(IndexA)('Red', 'Yellow', 'Green', 'Blue'); | ||
− | </code> | ||
− | |||
− | = Remedy = | + | == Remedy == |
* Create a global index to define the edit table. | * Create a global index to define the edit table. | ||
Line 21: | Line 20: | ||
OR | OR | ||
− | * | + | * Use [[Array]] instead of [[Table]], which accepts temporary indexes. |
− | |||
− | |||
− | + | ==See Also== | |
+ | * [[Working with Arrays (Tables)]] | ||
+ | * [[To edit a table]] | ||
+ | * [[Table]] | ||
+ | * [[Array]] |
Revision as of 00:27, 12 March 2016
Error message examples
An Edit Table function cannot be based on temporary indexes. Use the Array function instead.
Cause
All indexes to edit tables should be global objects (variables with nodes), and you tried to define one with a temporary index.
The following code would trigger this error by trying to define an edit table with a temporary index:
Index IndexA := 1..4;
Table(IndexA)('Red', 'Yellow', 'Green', 'Blue');
Remedy
- Create a global index to define the edit table.
OR
See Also
Comments
Enable comment auto-refresher