On Aug 15, 2006, at 11:02 AM, Daniel Stenning wrote:

And then can I do this ??

Sub myRBmethod( ByRef rStruct as myStructure )
    call myDLLcall( rStruct )
End Sub

Sure. That's exactly how ByRef works.

Dim foo As Ptr, bar As someStructure
bar = foo.someStructure

that's fine if we want a copy of the structure values, but not if we need to
keep playing with the original structure  "in place"

Then just keep playing with the original structure in place, and don't copy it into another structure variable. My example just showed that the lookup operator works with Ptr using a type name. If all you need is one field of the structure, keep on chaining up dots and field names until you get where you want to go.

Mars Saxman
REAL Software

_______________________________________________
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