Search through the data to get the largest length for the item in the
first column.
Then when you are doing your loop, do <cfset Variables.myTempFirstCol =
FirstColValue & repeatString(" ", Variables.lenMax -
len(FirstColValue) />
Then output #Variables.myTempFirstCol#|#Variables.mySecondCol#
Since the first column will now be a fixed length everything should line
up.
Steve
-----Original Message-----
From: ColdFusion Developer [mailto:[email protected]]
Sent: Wednesday, December 16, 2009 4:29 PM
To: cf-talk
Subject: Two Column Select Box?
Anyone develop a selectbox that shows two columns of data but only one
value?
Example:
<option value="1">XYZ | XYZ Corporation</option>
<option value="1">ABCD | AB Corporation of Delaware</option>
Goal is to still have the two columns aligned as well.
TIA!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329194
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4