Difference between revisions of "Error Messages/40179"
AManandhar (talk | contribs) (→Cause) |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | The first parameter to | + | == Error message examples == |
+ | |||
+ | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> | ||
+ | The first parameter to Slice(a, n) has more than one dimension. | ||
The two parameter form of Slice requires the first parameter to be an index, list, or | The two parameter form of Slice requires the first parameter to be an index, list, or | ||
− | one-dimensional array. Use the three parameter form, | + | one-dimensional array. Use the three parameter form, Slice(a, J, n), and |
specify the slice dimension as a second parameter. | specify the slice dimension as a second parameter. | ||
+ | </pre> | ||
− | = Cause = | + | == Cause == |
The first parameter passed to the [[Slice]] function is multidimensional, and no index to be sliced over was passed. When using [[Slice]] with a multidimensional variable, you need to specify the index to slice over as the second parameter. | The first parameter passed to the [[Slice]] function is multidimensional, and no index to be sliced over was passed. When using [[Slice]] with a multidimensional variable, you need to specify the index to slice over as the second parameter. | ||
− | + | == Remedy == | |
− | |||
− | = Remedy = | ||
Pass in the index to be used to [[Slice]] the multidimensional variable. | Pass in the index to be used to [[Slice]] the multidimensional variable. | ||
− | + | ==See Also== | |
+ | * [[Slice]] | ||
+ | * [[Arrays and Indexes]] | ||
+ | * [[Function calls and parameters]] |
Latest revision as of 23:52, 21 March 2016
Error message examples
The first parameter to Slice(a, n) has more than one dimension. The two parameter form of Slice requires the first parameter to be an index, list, or one-dimensional array. Use the three parameter form, Slice(a, J, n), and specify the slice dimension as a second parameter.
Cause
The first parameter passed to the Slice function is multidimensional, and no index to be sliced over was passed. When using Slice with a multidimensional variable, you need to specify the index to slice over as the second parameter.
Remedy
Pass in the index to be used to Slice the multidimensional variable.
See Also
Comments
Enable comment auto-refresher