Returns a query containing a subset of another query
querySlice(query, offset [, length])
→ returns query
query.slice(offset [, length])
data = [
[ 1,'James' ],
[ 2,'Alfred' ],
[ 3,'Amisha' ],
[ 4,'Terri' ]
];
myQuery = QueryNew( 'ID,name','integer,varchar',data );
result = QuerySlice( myQuery,2,2 );
writeDump( var='#result#' );
data = [
[ 1,'James' ],
[ 2,'Alfred' ],
[ 3,'Amisha' ],
[ 4,'Terri' ]
];
myQuery = QueryNew( 'ID,name','integer,varchar',data );
result = myQuery.slice( 2,2 );
writeDump( var='#result#' );
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.