Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
cfwild #1
cfc for querySetCell()
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>
cfwild Guest
-
querysetcell on MX
Hi; I am extracting an ODBCdate from an array, and trying to build a Query object using QuerySetCell(). I convert the ODBCdate object to a string...



Reply With Quote

