4DQuiz


OT GetVariable View from small screen devices!  

OT GetVariable

Parameter Type Description

inObject Longint A handle to an object inTag String Tag of the item to retrieve outVarPointer Variable pointer Pointer to a variable to receive the ← named item

Discussion

OT GetVariable gets a value in inObject from the item referenced by inTag. Every 4D variable type but 2D arrays can be retrieved with this command, including Boolean variables and arrays.

Note Boolean items stored in objects with OT PutVariable can only be retrieved with OT GetVariable.

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

If no item in the object has the given tag, nothing happens.

If an item with the given tag exists and has the same type as the type of the destination variable, the variable’s data is replaced with the data stored in the object.

If an item with the given tag exists and has a type other than the type of the destination variable, an error is generated and OK is set to zero.

See Also

OT PutVariable



Topics of Interest
OT PutVariable
Putting and Getting Values Generically
The Character Item Type
Item Types
 

Published date: Fri, 14 Jul 2006 18:39:05 GMT   → View XML Version

Edit this page now

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