Difference between revisions of "Error Messages/40107"

Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
An Edit Table function cannot be based on temporary indexes. Use the Array function instead.
+
== 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;<br>
+
:<code>Table(IndexA)('Red', 'Yellow', 'Green', 'Blue');</code>
Table(IndexA)('Red', 'Yellow', 'Green', 'Blue');<br>
 
</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
  
* User Array instead of Table, which accepts temporary indexes.
+
* Use [[Array]] instead of [[Table]], which accepts temporary indexes.
 
 
 
 
  
<comments />
+
==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

  • Use Array instead of Table, which accepts temporary indexes.

See Also

Comments


You are not allowed to post comments.