Questions inserting records with object pointers.

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Nov 4 12:22:31 CST 2003


on 11/4/03 11:07, Fred.Stephenson at Fred.Stephenson at communication-unltd.com
wrote:

> Ruslan,
> 
>> Better code will be:
>> 
>>     D_Ecurs.ULongfield("EPtr").value = Ecurs.ULongField("recid").value
>> 
>> There is no need for string conversion
> 
> 
> 
> as you have provided the "string" possibility why would the  code be better.
> 
> Just curious??

Because assign of LONG to LONG
Is at least 4 times faster that conversion

        LONG -> String -> LONG


> I have no problem with "value" as I use it for doubles but never
> bothered with other field types that I use
> so that I could copy and paste and then just change the field names
> (I'm extremely lazy ;?))

You can do this. But this is not best way :-)

That way is good although to have THE SAME line of code working for many
types.

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