Skip to content

Instantly share code, notes, and snippets.

@andrew-dixon
Created April 22, 2015 21:00
Show Gist options
  • Save andrew-dixon/c9a6583ef9adb24e2e66 to your computer and use it in GitHub Desktop.
Save andrew-dixon/c9a6583ef9adb24e2e66 to your computer and use it in GitHub Desktop.
function createPeople() {
local.qry=QueryExecute("select lastName, firstName from people");
local.people=[];
loop query="#qry#" {
people[qry.currentrow] = new Person(firstName, lastName);
}
return people;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment