Difference between revisions of "Error Messages/40881"

 
Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
 +
== Error message examples ==
 +
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 
  In an attempt to assign to the slice of an array, the position
 
  In an attempt to assign to the slice of an array, the position
       @='a'
+
       @ = 'a'
 
  is non-numeric.
 
  is non-numeric.
 +
</pre>
  
= Cause =
+
== Cause ==
  
 
While assigning to a slice of an array, you have passed a non-numeric value as the second parameter to the [[Slice]] function, which expects it to be an integer. The following piece of code would trigger this error as 'a' is textual and not numeric.
 
While assigning to a slice of an array, you have passed a non-numeric value as the second parameter to the [[Slice]] function, which expects it to be an integer. The following piece of code would trigger this error as 'a' is textual and not numeric.
  
<Code>
+
:<code>...</code>
...<br>
+
:<code>Slice(Array_A, 'a') := 417;</code>
Slice( Array_A, 'a') := 417;
 
</Code>
 
  
= Remedies =
+
== Remedies ==
  
 
Correct the second parameter to the [[Slice]] function to be an integer.
 
Correct the second parameter to the [[Slice]] function to be an integer.
  
<br><comments />
+
==See Also==
 +
* [[Slice]]
 +
* [[Subscript-Slice Operator]]
 +
* [[Arrays and Indexes]]
 +
* [[Function calls and parameters]]
 +
* [[Function parameter qualifiers]]
 +
* [[Function_parameter_qualifiers#Number|Numeric parameters]]

Latest revision as of 20:28, 5 April 2016


Error message examples

 In an attempt to assign to the slice of an array, the position
       @ = 'a'
 is non-numeric.

Cause

While assigning to a slice of an array, you have passed a non-numeric value as the second parameter to the Slice function, which expects it to be an integer. The following piece of code would trigger this error as 'a' is textual and not numeric.

...
Slice(Array_A, 'a') := 417;

Remedies

Correct the second parameter to the Slice function to be an integer.

See Also

Comments


You are not allowed to post comments.