|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
evaluate hell Pt2
Need serious help rewriting this statement without using evaluate:Cutter (CF-Talk) 02/03/06 06:01 P <cfifAdrian Lynch 02/03/06 06:34 P > <cfif isdefined("GetInventory.#GetListingFields.DBColName#") andMichael T. Tangorre 02/03/06 06:38 P Need serious help rewriting this statement without using evaluate: <cfif isdefined("GetInventory.#GetListingFields.DBColName#") and evaluate("GetInventory.#GetListingFields.DBColName#[#GetInventory.currentrow#]") NEQ 0 AND Trim(evaluate("GetInventory.#GetListingFields.DBColName#[#GetInventory.currentrow#]")) NEQ ""> (I'm confused???) Cutter <cfif IsDefined("GetInventory.#GetListingFields.DBColName#") AND GetInventory[GetListingFields.DBColName][GetInventory.currentrow] NEQ 0 AND Trim(GetInventory[GetListingFields.DBColName][GetInventory.currentrow]) NEQ "" > Need serious help rewriting this statement without using evaluate: <cfif isdefined("GetInventory.#GetListingFields.DBColName#") and evaluate("GetInventory.#GetListingFields.DBColName#[#GetInventory.currentrow #]") NEQ 0 AND Trim(evaluate("GetInventory.#GetListingFields.DBColName#[#GetInventory.curre ntrow#]")) NEQ ""> (I'm confused???) Cutter > <cfif isdefined("GetInventory.#GetListingFields.DBColName#") and > evaluate("GetInventory.#GetListingFields.DBColName#[#GetInvent > ory.currentrow#]") > NEQ 0 AND > Trim(evaluate("GetInventory.#GetListingFields.DBColName#[#GetI > nventory.currentrow#]")) > NEQ ""> Is GetListingFields a query also? Just off the top of my head.... isdefined("GetInventory[GetListingFields[DBColName]]") and val(GetInventory[GetListingFields[DBColName]][GetInventory.currentrow]) neq 0 and len(trim(GetInventory[GetListingFields[DBColName]][GetInventory.currentrow]) ) neq 0 Tango
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||