4DQuiz


OT GetArrayBoolean View from small screen devices!  

OT GetArrayBoolean version 1

OT GetArrayBoolean(inObject; inTag; inIndex) Number

Parameter Type Description

inObject Longint A handle to an object

inTag String Tag of the item to retrieve

inIndex Number Index of array element to retrieve

Function result Number The array element’s contents

Discussion

OT GetArrayBoolean gets a value in inObject from the array item referenced by inTag.

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

If no item in the object has the given tag, zero is returned. 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 the type Boolean array, and inIndex is in the range (0..OT SizeOfArray(inObject; inTag)), the value of the requested element is returned as a number (0=false, 1=true).

If an item with the given tag exists and has any other type, or if the index is out of range, an error is generated, OK is set to zero, and zero is returned.

See Also

OT PutArray



Topics of Interest
Put Value Routines
Get Value Routines
OT GetArray
OT PutArrayBoolean
 

Published date: Sat, 15 Jul 2006 21:23:41 GMT   → View XML Version

Edit this page now

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