main logo
Subject: Re: [V4WS] valUpdateAllRecords()
Author: Ruslan Zasukhin
Posted: 2001/10/31 10:33:55
 
View Entire Thread
New Search


on 10/31/01 15:03, Kaj Schermer Didriksen at kaj AT macron D.OT dk wrote:

> Hi Listers
>
> Im reading the v4ws manual and in the description of
> valUpdateAllRecords() it states:
>
> ... Valentina vill update only fields with new values (dirty fields)...
>
> Does this mean that if I was to dublicate a series of records and change
> a field I could do this:
>
> 1. do a select to get all the records I want a copy of and
> 2. loop through the cursor and call valGoToRecord() then valAddRecord()
> witout [field-values] (loop only the original size of the cursor
> 3. Call valUpdateAllRecords() and only the new records in the cursor
> will get updated with the field-values submittet with
> valUpdateAllRecords()

No, Kaj.

valUpdateAllRecords() work in different way:

curs.goto some record

curs.f1 = new value, e.g. 2 // this make field dirty
may be enough fields you set here.

curs.valUpdateAllRecords()


now all records of this cursor has in f1 value 2.



--
Best regards,
Ruslan Zasukhin

-------------------------
Paradigma.

e-mail: ruslan@paradigmasoft.com
web : http://www.paradigmasoft.com

To subscribe to the Valentina mail list
send a letter to valentina-on AT lists D.OT macserve.net
 
©2001 Ruslan Zasukhin
<-- Prior Message New Search Next Message -->