Hi,

I would typically write the following code: (See Example A)

What I'd like to be able to do is write a CFC that does the same thing but in
this format:

addEmployee(Steele, Jake, 1)

Can anyone give me some insight on how to accomplish this?

Thanks!

cfwild



Example A:

<cfscript>
employeeQuery = QueryNew("LastName,FirstName,EmployeeNumber");
newRow = QueryAddRow(employeeQuery);
QuerySetCell(employeeQuery, "LastName", "Steele" );
QuerySetCell(employeeQuery, "FirstName","Jake" );
QuerySetCell(employeeQuery, "EmployeeNumber",1 );
</cfscript>