![]() |
![]() |
![]() |
![]() |
$get_array and $sub_array
Synopsis
$get_array [object]
$sub_array_[object]Description
$get_array prints the values of an array object.
$sub_array prints the values assigned to a specified subarray of object . When you enter this command, AVS/Express prompts you for a range in each dimension of the object. AVS/Express uses zero-based indexing. The index of the first element in an array dimension is 0.
Examples
OM(SingleWindowApp) -> int x[3][2] = {{1,2,3}, {4,5,6}};
OM(SingleWindowApp) -> $get_array x
{{1,2,3},{4,5,6}}
OM(SingleWindowApp) -> $sub_array x
Enter sub-array dims for 2D array
enter range `min max' for D0[3]:0 2
enter range `min max' for D1[2]:0 1
{{1,2,3},{4,5,6}}
OM(SingleWindowApp) -> point points[] => {p1, p2};
OM(SingleWindowApp) -> $array_dims points
ndim=1 [2]
![]() |
![]() |
![]() |
![]() |