Geert Larsen
|
| Posted: 06/23/2002, 1:34 AM |
|
This may sound like a standard ASP/vbscript question, but I know how to do
it in ASP but can't figure it out in CCS ??
This is the issue -- I need to concatenate up to 25 lines and present them
in the first line - but only if the are not empty:
The asp code loks like this:
for loop1 = 0 to 23
if RTrim(MyRs(31 - loop1)) <> "" then
TextFound = 1
end if
if TextFound = 1 then
Story = MyRs(31 - loop1) & "<br />" & Story
end if
next
How do I do it in CCS and where to place the code (onBeforeShow??)
TIA
/ geert
|
|
|
 |
LW Irving
|
| Posted: 06/25/2002, 10:42 PM |
|
The code below applies to a form called dnarticles with a field called
article_desc
if len(dnarticles.article_desc.value)> 250 then
dnarticles.article_desc.value=left(dnarticles.article_desc.value,200)&
".......<BR><A href=articles.asp?article_ID=" &
dnarticles.alt_article_ID.value & ">-- MORE --</A>"
end if
HTH
Wayne
"Geert Larsen" <geertl@image.dk> wrote in message
news:af415n$c17$1@news.codecharge.com...
> This may sound like a standard ASP/vbscript question, but I know how to do
> it in ASP but can't figure it out in CCS ??
>
> This is the issue -- I need to concatenate up to 25 lines and present them
> in the first line - but only if the are not empty:
>
> The asp code loks like this:
> for loop1 = 0 to 23
> if RTrim(MyRs(31 - loop1)) <> "" then
> TextFound = 1
> end if
> if TextFound = 1 then
> Story = MyRs(31 - loop1) & "<br />" & Story
> end if
> next
>
> How do I do it in CCS and where to place the code (onBeforeShow??)
>
> TIA
> / geert
>
>
|
|
|
 |
|