Difference between revisions of "Error Messages/40881"
AManandhar (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | + | [[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>Slice(Array_A, 'a') := 417;</code> |
− | Slice( Array_A, 'a') := 417; | ||
− | </ | ||
− | = 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. | ||
− | + | ==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
Enable comment auto-refresher