Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tcl

Status
Not open for further replies.

kukla

IS-IT--Management
Dec 10, 2002
2
DE
hi,
I work with an CMS. This system uses TCL.
A list will built but on livesite you can see the {} in the list. What can I do?

Here's the tcl
<code>
TCL-Script &quot;buildListItems&quot;
//
proc buildListItems {value type args} {
set returnValue &quot;&quot;
foreach row [split $value &quot;\n&quot;] {
if {[string length [string trim $row]] != 0} {
append returnValue &quot;<li>$row</li>&quot;
}
}
return $returnValue
}
//
</code>
 
I tried this bit of code in WISH
and got <li>n<li> where n is a number 1 gave the 'value'argument. Is this what you expect?

I realise this is to modify or create web content

can you provide a sample output of what your getting?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top