Chapter 15 Working with IDL
To define arrays for a union or a struct attribute, you have to use the multiplicity properties of the attribute.
union Customer switch(short) { case XYZ: char Last_Name[30]; case ZYX: char Name[20]; };
You can also use the association multiplicity when the union or struct is linked with another class. The association role and multiplicity will become array attributes of the union or struct classes:
struct Client { char Name[30]; short Age[3]; European_Client European attributes[5]; };
Copyright (C) 2005. Sybase Inc. All rights reserved. |