User`s guide

D Utility Library
D-16
Remarks. Clone allocates a new MWFlags object and creates a deep copy of the
objects contents. Call this function when a separate object is required instead
of a shared copy of an existing object reference.
Class MWStruct
The MWStruct class passes or receives a Struct type to or from a compiled class
method. This class contains seven properties/methods:
Sub Initialize([varDims], [varFieldNames]) on page D-16
Property Item([i0], [i1], , [i31]) As MWField on page D-17
Property NumberOfFields As Long on page D-20
Property NumberOfDims As Long on page D-20
Property Dims As Variant on page D-20
Property FieldNames As Variant on page D-20
Sub Clone(ppStruct As MWStruct) on page D-21
Sub Initialize([varDims], [varFieldNames])
This method allocates a structure array with a specified number and size of
dimensions and a specified list of field names.
Parameters.
Return Value.
None.
Remarks. When created, an MWStruct object has a dimensionality of 1-by-1 and
no fields. The
Initialize method dimensions the array and adds a set of
named fields to each element. Each time you call
Initialize on the same
object, it is redimensioned. If you do not supply the
varDims argument, the
existing number and size of the arrays dimensions unchanged. If you do not
supply the
varFieldNames argument, the existing list of fields is not changed.
Calling
Initialize with no arguments leaves the array unchanged.
Argument Type Description
varDims Variant
Optional array of dimensions
varFieldNames Variant
Optional array of field names