Well, you could break on commas, and always trim().
You could always replace line breaks with spaces.
You could use an array and assign each row individually.
You could do this programmatically using listappend().
I'm sure there are others I'm not thinking of.
HTH.
--Ben
Daniel Kessler wrote:
> I need to break a line of code onto a second line while keeping it as
> a line of code. I have the following array and when I use the value
> "Jerry Wrenn Scholarship" as a value in a radio button, when I
> retrieve the value from the db, it doesn't match the original value
> in an CFIF statement. When I make it all on on line, the CFIF works
> fine. How do I do this sort of soft-return?
>
> <cfset fund_ar = listToArray("The Dean's Fund,Health and Society
> Visiting Professorship,
> Jerry Wrenn Scholarship,Kinesiology Gift Fund)
>
> In the example above, I've shortened the entries. I need this to
> make the code manageable.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188468
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54