House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

evaluate hell Pt2

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
<cfif
Adrian Lynch
02/03/06 06:34 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Cutter (CF-Talk)
02/03/2006 06:01 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Adrian Lynch
02/03/2006 06:34 PM

<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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Michael T. Tangorre
02/03/2006 06:38 PM

> <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


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference