QueryRowSwap
In a query object, swap the record in the sourceRow with the record from the destinationRow.
Method Signature
QueryRowSwap(query=[query], source=[numeric], destination=[numeric])Arguments
Argument
Type
Required
Description
Default
query
query
true
The query to swap a row with
source
numeric
true
The row to swap from
destination
numeric
true
The row to swap to
Examples
Example1
This is Example1
qry = queryNew( "rowid,name", "integer,varchar", [
[
1,
"Bob"
],
[
2,
"Theodore"
],
[
3,
"Jay"
],
[
4,
"William"
]
] );
swap1 = queryRowSwap( qry, 1, 4 );
writeDump( swap1 );
Member function version.
Using the member function.
Additional Examples
Related
Last updated
Was this helpful?
