4DQuiz


OT GetArray View from small screen devices!  

OT GetArray

Parameter Type Description

inObject Longint inTag String outArray Array A handle to an object

Tag of the item to set Array to receive the item’s contents ←

Discussion

OT GetArray gets an array value in inObject from the item referenced by inTag.

If the object is not a valid object handle, an error is generated, OK is set to zero, and outArray is cleared.

If no item in the object has the given tag, outArray is cleared. If the FailOnNoItem option is set, an error is generated and OK is set to zero.

If an item with the given tag exists and has a compatible type, the array’s contents are replaced.

If an item with the given tag exists and has any other type, an error is generated, OK is set to zero, and array is cleared.

Array Type Compatibility

Except for String and Text arrays, you must put and get arrays into the same type of array variable. String and Text arrays, however, may be mixed and matched, because ObjectTools stores both types of array with an item type of OT Character array (113).

Note If you retrieve into a fixed width String Array, the elements will be tnuncated to the width of the array.

See Also

OT PutArray, OT GetArrayBoolean (inObject; inTag; inIndex) Number

 



Topics of Interest
Ot PutArrayLong
OT PutArrayDate
OT GetArrayText
OT GetArrayDate
Using Arrays with Objects
OT GetLong
The Character Item Type
Array Utility Routines
OT PutArrayPointer
OT PutArrayBoolean
OT GetArrayBoolean
OT PutArrayText
OT PutArrayReal
OT GetArrayPicture
Item Types
OT SizeOfArray
OT GetReal
OT GetArrayPointer
OT GetText
OT GetArrayReal
 

Published date: Sat, 15 Jul 2006 21:20:14 GMT   → View XML Version

Edit this page now

© 2005 - 2006 4dquiz.com, All trademarks accepted. All Rights Reserved!
Site Index