[V4RBclient] cursor.setblank really necessary?

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Oct 5 17:06:32 CDT 2004


On 10/5/04 5:01 PM, "Eric Ferrer" <wonderfef at noos.fr> wrote:

Hi Eric,

> Hello all,
> 
> In one hand, I have a cursor containing a few records.
> In another hand, I have a string that contains ids of records, fields names
> and values.
> 
> In a loop, I analyse this "updating" string in order to update the records
> in the cursor.
> 
> The trouble is that my "updating" string may not contain exactly all the
> fields available in the cursor:
> 
> Say my cursor contains "field1", "field2" and "field3" but my updating
> string only contains values for "field2".
> So, if I call "cursor.setblank", it will erase the values in "field1" and
> "field3", which is bad!

SetBlank() should be used before ADD RECORD, but not before UPDATE

> The question is:
> Is "cursor.setblank" really necessary?

Yes for ADD

> Of course, I could examine first what's in my updating string in order to
> get the good fields from the cursor, but this is not possible in the way I
> use my updating string...

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