This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

how to shorten $text [SOLVED]

Help for those learning Tcl or writing their own scripts.
Post Reply
t
tueb
Halfop
Posts: 76
Joined: Thu Oct 04, 2007 6:09 am
Location: #quiz.de @ irc.gamesurge.net
Contact:

how to shorten $text [SOLVED]

Post by tueb »

Hi,

how do I shorten a text? for example: the variable $var is 400 letters long and i want to reduce the length to the first 200 letters.

thx in advance,

t.
Last edited by tueb on Thu Oct 25, 2007 10:08 am, edited 1 time in total.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Code: Select all

string range theText 0 199
Have you ever read "The Manual"?
t
tueb
Halfop
Posts: 76
Joined: Thu Oct 04, 2007 6:09 am
Location: #quiz.de @ irc.gamesurge.net
Contact:

Post by tueb »

thx =D
Post Reply