Creating a Cursor without a table

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Sep 15 23:55:26 CDT 2003


on 9/15/03 23:45, David Hart at davidhart_home at hotmail.com wrote:

> I understand.  What is faster ( in your opinion ):
> 
> 1.  Vcursor.add()
> 2.  Insert into table
> 
> Please let me know.

You use V4RB, yes?

Then fastest way --
1) use BaseObject API to add record and fill fields.
2) fill fields using numbers where it is possible.
3) if you have loop, then BEFORE loop obtain references on fields

    f1 = myBaseObject.Field("a")
    ...
    fn = myBaseObject.Field("a")

    loop{
        myBaseObject.SetBlank
        f1.value = 5
        ...

        myBaseObject.AddRecord()
    }

I think this is the fastest way.

NOTE: if you going now or later to use client-server then you need use ONLY
cursors to work with records.


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