[V4rb] ObjectPtr query

Fred.Stephenson Fred.Stephenson at communication-unltd.com
Wed Sep 24 14:22:57 CDT 2003


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"

all the best

Fred


More information about the Valentina mailing list