I've always been under the impression that objects are passed by reference. Apparently not so.
Code: Select all
CLASS JoeClass INHERIT Something
HIDDEN JoeFile as XUseFile // inherits from DBServer
METHOD JoeMethod CLASS JoeClass
SELF:JoeFile := XUseFile( "JOE.DBF" .. )
WHILE !SELF:JoeFile:Eof
? XGetTheName( SELF:JoeFile )
SELF:JoeFile:Skip(1)
ENDDO
RETURN NIL
FUNCTION XGetTheName( SomeFile AS XUseFile ) AS STRING STRICT
RETURN SomeFile:FIELDGET(#NAME)
1. Is it in fact true: the object above is NOT passed by reference ?
2. And if so, how can I change the syntax so that it works in both VO and X# ?
Thanks in advance for your assistance.