Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eliminate Blanks in QuotedValueList

Status
Not open for further replies.

shobia

Programmer
Jun 20, 2005
10
US
How do i get rid of blank values in a QuotedValueList?
Replace does not always work.Version is ColdFusion MX 7.

ex: 'a','b','','d'
'a','b','d'

Thanks
Shobia


 
You can either modify your query to not pull blank (NULL) values, or you can use this UDF to replace the blank values with something else, then hunt down and get rid of that value.


For example, replace all blank values with "Null". Then you could use ListFind & ListDeleteAt to get rid of all the NULL values.

Actually, you may be able to use ListFind & ListDeleteAt on the string as-is. I don't know if it can find the blank values or not...



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top