Bryan,
I didn't realize you had changed the code I posted. I read
through so fast I
didn't see that. Thanks for giving me the answer and the
explanation.
Kim
"Bash **AdobeCommunityExpert**"
<bashcraft@wmtBRAIN.com> wrote in message
news:eskqih$r15$1@forums.macromedia.com...
> The pound signs were just a side note. Look at the name
of the variable in
> the cfset statement. You had it named the same as the
query column which
> could be causing a scope issue. I changed the name.
>
> --
> Bryan Ashcraft (remove brain to reply)
> Web Application Developer
> Wright Medical Technology, Inc.
>
------------------------------------------------------------------
> Macromedia Certified Dreamweaver Developer
> Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
>
>
> "KimMazz" <kimazzNoOil@optonline.net> wrote in
message
> news:esknto$ohu$1@forums.macromedia.com...
>> Hi Bryan,
>>
>> I tried it with out the pound signs and it still
didn't work. Showed the
>> entire headline. I only put the pound signs in
because it didn't work
>> without them, so... when all else fails, add pound
signs ;0)
>>
>>
>> Kim
>>
>> "Bash **AdobeCommunityExpert**"
<bashcraft@wmtBRAIN.com> wrote in message
>> news:eskn1j$nlo$1@forums.macromedia.com...
>>>I think it could be scope issue. As an FYI you
don't the pound signs in
>>>the if, or set, statements. Try this:
>>>
>>> <cfoutput query="rsGetNewsInfo">
>>> <cfif Len(rsGetNewsInfo.NewsHeadline) GT
35>
>>> <cfset Headline =
Left(rsGetNewsInfo.NewsHeadline, 20)>
>>> <cfelse>
>>> <cfset Headline =
rsGetNewsInfo.NewsHeadline>
>>> </cfif>
>>> <option
>>>
value="#rsGetNewsInfo.NewsID#">#DateFormat(rsGetNewsInfo.PostDate,
>>> 'm/d/yy')# - #Headline#</option>
>>> </cfoutput>
>>>
>>> --
>>> Bryan Ashcraft (remove brain to reply)
>>> Web Application Developer
>>> Wright Medical Technology, Inc.
>>>
------------------------------------------------------------------
>>> Macromedia Certified Dreamweaver Developer
>>> Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
>>>
>>>
>>> "KimMazz" <kimazzNoOil@optonline.net>
wrote in message
>>> news:eskksa$ljp$1@forums.macromedia.com...
>>>>I am pulling headlines from a database table
to create a drop down list.
>>>>Some of the headlines are very long and
therefore outputting the entire
>>>>headline makes my drop down too long for the
table.
>>>>
>>>> I am trying to use Len and Left, but its not
working. Some help with
>>>> what I am doing wrong would be great.
>>>>
>>>> Thanks,
>>>> Kim
>>>>
>>>>
>>>> <cfoutput query="rsGetNewsInfo">
>>>> <cfif #Len(rsGetNewsInfo.NewsHeadline)#
GT 35>
>>>> <cfset NewsHeadline =
Left(rsGetNewsInfo.NewsHeadline, 20)>
>>>> <cfelse>
>>>> <cfset NewsHeadline =
#rsGetNewsInfo.NewsHeadline#>
>>>> </cfif>
>>>> <option
>>>>
value="#rsGetNewsInfo.NewsID#">#DateFormat(rsGetNewsInfo.PostDate,
>>>> 'm/d/yy')# - #NewsHeadline#</option>
>>>> </cfoutput>
>>>>
>>>>
>>>
>>>
>>
>>
>
>