Hi,
Check the length first
<%
s = Recordset2.Fields.Item('Issues').Value
if len(s) > 60 then s = left(s,60) & "...."
response.write s
%>
Jon
"sebsal" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
I am tryind to display a certain amount of characters from a result and
further
text depending on the amount of characters. So far I have <% dim tissue
tissue = Recordset2.Fields.Item('Issues').Value %> <%
response.write(Left(tissue,60)) & '...' %> I only want to pull 60
characters back and this works with the above code. The problem is that I
only
want to display the '...' if the result is over 60 characters. The above
code
displays '...' every time. Thanks in advance Craig Graham |