[V4rb] ObjectPtr query

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Sep 24 15:36:42 CDT 2003


on 9/24/03 3:22 PM, Fred.Stephenson at
Fred.Stephenson at communication-unltd.com wrote:

> Ruslan,
> 
> 
>>>   case kv_typeobjectPtr
>>> 
>>>     iobjptr=vobjectptr(thefield)
>>>     targ=iobjptr.target
>>>     newtarg=olddb.baseobject(targ.name)
>>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>     I think must be
>> 
>>     newtarg = newdb.baseobject(targ.name)
>> 
> 
> no, I'm sure
> newtarg=olddb.baseobject(targ.name) is correct
> 
> what I'm doing is opening the old version "olddb"
> opening the latest version "newdb"
> running through "newdb" and comparing with "olddb"
> 
> if olddb.baseobject or olddb.baseobject.field doesn't exist I create
> it. "theField" is the field in the "newdb" that needs creating in the
> "olddb"

Then I have no idea.
All seems to be correct.

At last of end you can try create in old db some ObjectPtr using
Simply some name, some its BaseObject.
If this works then what difference?


-- 
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