4DQuiz


OT GetArrayString View from small screen devices!  

Parameter Type Description

inObject Longint inTag String inIndex Number Function result String A handle to an object

Tag of the item to retrieve

Discussion

OT GetArrayString 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 an empty string is returned.

If no item in the object has the given tag, an empty string 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 OT Character array, and inIndex is in the range (0..OT SizeOfArray(inObject; inTag)), the value of the requested element is returned.

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 an empty string is returned.

See “The Character Item Type” on page 11 for more information on storing and retrieving strings.

Note If the result of this method is assigned to a fixed width String variable, the item’s contents will be truncated to the width of the variable. To retrieve more than 255 characters from a Character Array, use OT GetArrayText and assign to a Text variable or field.

See Also

OT PutArray , OT GetArrayText



Topics of Interest
Accessing Array Elements within Object I...
OT GetString
OT PutArrayString
OT GetArrayText
Using Arrays with Objects
The Character Item Type
Item Types
 

Published date: Sat, 15 Jul 2006 21:34:04 GMT   → View XML Version

Edit this page now

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