Click or drag to resize

CoreDb.Trans Method

Copy one or more rows from one work area to another.

Namespace:  XSharp
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.6
Syntax
 STATIC METHOD Trans(
	nDest AS DWORD,
	fldNames AS _FieldNames,
	uCobFor AS ICodeblock,
	uCobWhile AS ICodeblock,
	nNext AS Object,
	nRecno AS Object,
	lRest AS LOGIC
) AS LOGIC
Request Example View Source

Parameters

nDest
Type: UInt32
The work area number for the target Workarea.
fldNames
Type: _FieldNames
The field names to write specified as an _FieldNames object.
uCobFor
Type: ICodeblock
A code block that defines a condition that each record within the scope must meet in order to be processed.
uCobWhile
Type: ICodeblock
A code block that defines another condition that each record must meet in order to be processed.   As soon as a record is encountered that causes the condition to fail, the operation terminates.
If no scope is specified, <cbWhileCondition> changes the default scope to <lRest>.
You define the scope using one of these three, mutually exclusive arguments.
The default is all records.
nNext
Type: Object
nRecno
Type: Object
lRest
Type: Boolean

Return Value

Type: Boolean
TRUE if successful; otherwise, FALSE.
See Also