dcsimg
Question about the length of STRUCT in java
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   fiona_sun
Posted On:   Monday, June 4, 2001 12:40 PM

Here are the codes:

Object[] objects = (Object[])array.getArray();
Object[] recobj;


int retvalSize = 0;

for (int i = 0; i < objects.length; i++) {
recobj = ((STRUCT)objects[i]).getAttributes();
retvalSize += recobj.length;
}


Is there a better way to get the length of STRUCT?

About | Sitemap | Contact