Hi all,
how can I manage it to cut a string.
for example:
a string property(testtext) with 500
words.
but only want to give out 20 characters of tis
text.
Thank you
Jens
]
Sent: Tuesday, September 26, 2000 8:28 PM
Subject: [Zope] String manipulation
Hi all,
how can I manage it to cut a string.
for example:
a string property (testtext) with 500 words.
but only want to give out 20 characters of tis text.
Thank you
Jens
__
"how can I manage it to cut a string.
for example:
a string property (testtext) with 500 words.
but only want to give out 20 characters of tis text."
Python sequence slicing syntax can be done with DTML, like so:
dtml-call "REQUEST.set('first_20_char', '_['some_long"string'][:20])"
dtml-var