wwUtils::CollectionToCursor

Updates a cursor from a collection by doing GATHER NAME MEMO for each member. An optional search expression can be provided for each item to allow updating existing records.

CollectionToCursor(loCollection, lcAlias, lcSearchExpression)

Return Value

.T. or .F.

Parameters

loCollection
The collection of SCATTER NAME style objects to save.

lcAlias
Alias of the table to import to. If not passed ALIAS() is used.

lcSearchExpression
An optional expression that allows comparing records to find matches to update.
Example: "pk = item.pk"

The expression is evaluated using macro substitution. The collection item is available as 'item' (ie. item.pk, item.descript etc.)

See also:

Class wwUtils | wwUtils::CursorToCollection

© West Wind Technologies, 2004-2017 • Updated: 09/17/14
Comment or report problem with topic