4DQuiz


Creating and Destroying Objects View from small screen devices!  

Creating and Destroying Objects

Like 4D hierarchical lists, objects are represented by a Longint known as the object handle, or simply handle. You create a new object with the OT New method, like this:

C_LONGINT($object)$object:=OT New

Once you have an object handle, you can then proceed to put values into and get values from the object, query the object for information about its structure, copy it to another object, and put it into a BLOB.

The data stored in an object takes up a certain amount of memory within your application. When you are completely finished with an object, it is critical that you release the object’s memory by calling OT Clear, like this:

OT Clear($object:) `$object will be set to zero by OT Clear

Once you have cleared an object with OT Clear, you will no longer be able to use its handle.



 

Published date: Fri, 14 Jul 2006 17:43:30 GMT   → View XML Version

Edit this page now

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