Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfset myQuery = QueryNew("Name, Time, Advanced", "VarChar, Time, Bit")>
- <cfset QueryAddRow(MyQuery, 2)>
- <cfset QuerySetCell(myQuery, "Name", "Test 1", 1)>
- <cfset QuerySetCell(myQuery, "Time", "9:15 AM", 1)>
- <cfset QuerySetCell(myQuery, "Advanced", False, 1)>
- <cfset QuerySetCell(myQuery, "Name", "Test 2", 2)>
- <cfset QuerySetCell(myQuery, "Time", "12:15 PM", 2)>
- <cfset QuerySetCell(myQuery, "Advanced", True, 2)>
- <cfscript>
- public void function doLoop(queryObj) {
- for( dRow in arguments.queryObj ) {
- writeOutPut( queryObj.currentRow );
- writeOutPut( '<br />' );
- }
- }
- doLoop( MyQuery );
- </cfscript>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement