[V4rb] ObjectPtr query
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Sep 23 19:24:28 CDT 2003
on 9/23/03 6:12 PM, Fred.Stephenson at
Fred.Stephenson at communication-unltd.com wrote:
Hi Fred,
> Ruslan,
> I'm writing a small application with Realbasic 4.5 to compare and
> update 2 databases.
> One thing that doesn't seem to work is creating object pointers.
> here's the code :
>
> case kv_typeobjectPtr
> iobjptr=vobjectptr(thefield)
>
>
> kobjPtr=bo.createObjectPtrField(iobjptr.name,iobjptr.target,iobjptr.deletionCo
> ntrol)
But you try send iobjptr.target
This is BaseObject of first database, yes?
And you send it to second db which DO NOT know it :-)
You need get from iobjptr.target its name
Then in second db obtain BaseObject with such name and use its pointer.
> //putting a breakpoint in here shows that
> // kobjptr.target=nil
> //kobjPtr.pointedObject=nil
> // if I add the following
>
> kobjPtr.pointedObject=iobjptr.pointedObject
>
> //then the break shows the target and pointed object
> //as does the following line
>
> kobjPtr.target=iobjptr.target
>
> However when I look at the modified database in Vapp the target is
> not there and the baseobject is not "linked".
> What am I doing wrong?
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list