On May 16, 2006, at 4:40 PM, Dan Stenning wrote:

Thanks for the clarification.

One last thing regarding < You can use the name of any structure- safe type
in place of "Integer>

Since a Structure itself is "structure-safe"  is there a way of
Pointing to a structure ? I am trying to think of returning a pointer to a structure from a method ( since one cant return the structure directly )

No. What that means is that you can say:

myPtr.MyStructure.Field = 2

You can't get the address of a structure in REALbasic. You can copy the structure to a MemoryBlock (through StringValue) and return it (although at that point, you might as well use the MemoryBlock), or just pass the "return" value as a byref parameter.

-Jon


--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to