Questions inserting records with object pointers.

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Nov 4 10:28:35 CST 2003


on 11/4/03 0:52, chuck hinkle at chuckbo at hinkles.us wrote:

>> D_Ecurs.setblank
>> D_Ecurs.field("EPtr").setstring(Ecurs.field("recid").getstring)
>> D_Ecurs.field("DPtr").setstring(Dcurs.field("recid").getstring)
>> if not D_Ecurs.add then
>> if Db.errNumber <> 344 then
>> // error sequence here
>> end if
>> end if
> 
> 
> Thanks, Fred, I'll use that code.
> 
> That leaves me with another question. Why can I assign a pointer (a vULLONG)
> to a string (with GetString) and not have to convert it to a Double along
> the way?

Correct Chuck,

Better code will be:

    D_Ecurs.ULongfield("EPtr").value = Ecurs.ULongField("recid").value

There is no need for string conversion


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