Error Messages/40179

Revision as of 23:30, 29 January 2010 by AManandhar (talk | contribs) (Created page with '= 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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Remedy

Pass the index to be used to Slice the multidimensional variable.


Loading comments...
Comments
<comments />