Forums
This topic is locked
setting max character
Posted 04 Aug 2004 11:06:29
1
has voted
04 Aug 2004 11:06:29 pieter schievink posted:
i want to implement a code for setting a max character in a result page.can sombody give me a code to do that?
It has to look something like this:
I have a horse and it is for sale........<read more>.
i have tried to do the following:
<p class="style1 style5"><%=(paardSet.Fields.Item("omschrijving".Value)%></p>
in to:
<p class="style1 style5"><%=(paardSet.Fields.Item("omschrijving".Value,50)%>......</p>
but it does not work.
greetz,pieter<b></b><b></b><b></b><b></b><i></i><i></i><b></b><b></b><b></b>
Edited by - skivenko on 04 Aug 2004 11:31:44
Replies
Replied 04 Aug 2004 19:40:40
04 Aug 2004 19:40:40 Dave Thomas replied:
use the LEFT function like so.
<pre id=code><font face=courier size=2 id=code><p class="style1 style5"><%=Left(paardSet.Fields.Item("omschrijving".Value,50)%>......</p></font id=code></pre id=code>
now it will only show the first 50 characters.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
<pre id=code><font face=courier size=2 id=code><p class="style1 style5"><%=Left(paardSet.Fields.Item("omschrijving".Value,50)%>......</p></font id=code></pre id=code>
now it will only show the first 50 characters.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
Replied 04 Aug 2004 20:22:48
04 Aug 2004 20:22:48 pieter schievink replied:
Thanks,Ultradav it works.<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>