CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 How to iterate and concatenate ?

Print topic Send  topic

Author Message
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
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.