DAArray Constructs a DAArray object. DAArray2 Constructs a DAArray object that can specified as changeable or not changeable. UninitializedArray Makes it possible to obtain the signature of a DAArray object before it has been defined.
Constructs a DAArray object.
Syntax
lib.DAArray( behaviors )
Parameters
- behaviors
- Elements in the array.
Constructs a DAArray object that can be specified as changeable or not changeable. If it is changeable, you can add or remove elements with the DAArray functions AddElement and RemoveElement.
Note this function can be used only with Microsoft® DirectAnimation® version 6.x or later.
Syntax
lib.DAArray2( behaviors, flag = value )
Parameters
- behaviors
- Elements in the array.
- flag
- Flag indicating whether the array is changeable or not. The default is not changeable. Set flag = value to DAARRAY_CHANGEABLE = 1 to specify that the array is changeable.
Remarks
The following JScript code constructs a changeable array myArray:
myArray = m.DAArray2(myImages, DAARRAY_CHANGEABLE = 1);The following VBScript code constructs a changeable array myArray:
Set myArray = m.DAArray2(myImages, DAARRAY_CHANGEABLE = 1)
Makes it possible to obtain the signature of a DAArray object before it has been defined. With this function, a DAArray object can be created and used in the definition of other DABehaviors, while its contents are defined at some later point. This definition is accomplished with the Init function, which is available on all DABehavior objects. To create an uninitialized array, first create an array with a dummy variable and its types, and then call UninitializedArray. This will create a variant array which has a signature only. It is necessary to give only one member of the array, no matter how many members there will actually be.
Syntax
lib.UninitializedArray( )
See Also
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.