DynamicQuery::ExecuteForUpdate (open)
Executes the the query, calls a callback for every record to update that record. Call StopExecution() to stop processing within the query.
Syntax
LOADLIB "wh::dbase/dynquery.whlib";
MACRO ExecuteForUpdate(FUNCTION PTR onupdate, STRING ARRAY updatecolumns)
Parameters
FUNCTION PTR onupdate
Function, RECORD func(RECORD). Called with current contents, return updates. No update is performed when a default record is returned.
STRING ARRAY updatecolumns
Columns that will be updated.