QuerySlice
Method Signature
QuerySlice(query=[query], offset=[integer], length=[integer])Arguments
Argument
Type
Required
Description
Default
Examples
Create a query with 4 rows and return a new query containing the 2nd and 3rd rows of the first
data = [
[
1,
"James"
],
[
2,
"Alfred"
],
[
3,
"Amisha"
],
[
4,
"Terri"
]
];
myQuery = QueryNew( "ID,name", "integer,varchar", data );
result = QuerySlice( myQuery, 2, 2 );
writeDump( var="#result#" );
Using a member function
Additional Examples
Related
Last updated
Was this helpful?
