CCFXQuery* CCFXRequest::AddQuery(LPCSTR lpszName, CCFXStringSet*
pColumns)
Adds a query to the calling template. This query can then be accessed by DBML tags (e.g., DBOUTPUT or DBTABLE) within the template. Note that after calling AddQuery, the query exists but is empty (i.e., it has 0 rows). To populate the query with data, you should call the CCFXQuery member functions CCFXQuery::AddRow and CCFXQuery::SetData.
Returns a pointer to the query that was added to the template (an object of class CCFXQuery). You are not responsible for freeing the memory allocated for the returned query (it will be automatically freed by ColdFusion after the request is completed).
lpszName
Name of query to add to the template (must be unique).
pColumns
List of columns names to be used in the query.
|