User`s guide
4 Using MWArra y Classes
MWArray[] x = (MWArray[]) S.getData();
for (int i = 0; i < x.length; i++)
System.out.print(" " + x[i]);
When run, the example displays this output:
Data read from structure array S:
15
30
45
60
75
90
getField. This method returns a shared copy of the element at the specified
one-based index array and field name in this array as an
MWArray instance.
Togettheelementataspecificindex,useoneof
public MWArray getField(int index)
public MWArray getField(int[] index)
To get the element at a specific index and structure field, u se one of
public MWArray getField(String fieldname, int index)
public MWArray getField(String fieldname, int[] index)
Use the first syntax (int index) to return the ele ment at the specified
one-based offset in the a rray, accessing elements in column-wise order. Us e the
second syntax (
int[] index) to return the element at the specified array of
one-based indices. The first syntax offers better performance than the second.
Dispose of the returned
MWArray reference b y calling MWArray.dispose().
Input Parameters
fieldname
4-128