Tim 111 -> limit charater return in field (7/4/2004 1:31:18)
I have a long text field which on an introductory page, I want to limit the display to say, 200 characters. If the reader wants to see more details, they can go to another page and see the full text. Does someone know how this can be achieved?
Spooky -> RE: limit charater return in field (7/4/2004 1:36:49)
Use the code :
<%=Left(INPUT, 200)%>
Then link to the source
Tim 111 -> RE: limit charater return in field (7/4/2004 3:37:24)
quote:
<%=Left(INPUT, 200)%>
Err, not quite sure what you mean there Spooky?
Spooky -> RE: limit charater return in field (7/4/2004 3:55:24)
If you have a really long string - from a database, then youll insert that part as "INPUT"
So, if you are using the DRW, itll look like :
<%=Left(FP_Field(fp_rs,"Field"), 200)%>
If using a normal asp rs, it may look something like :
<%=Left(rs("Field"), 200)%>
That code will "write" the "left" 200 characters of the input string.
Tim 111 -> RE: limit charater return in field (7/4/2004 16:15:08)
Spooky, you're a gentleman and quite obviously a scholar. Cheers Tim