| View previous topic :: View next topic |
| Author |
Message |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Wed May 21, 2008 3:15 pm Post subject: cut a variable? |
|
|
Is there a way to "cut" a variable?
if someone for example uses "!mygreet (text)", then $text should end at for example 15 letters...
is this possible? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
Papillon Owner

Joined: 15 Feb 2002 Posts: 724 Location: *.no
|
Posted: Wed May 21, 2008 3:32 pm Post subject: |
|
|
| Code: | | set text [string range $text 0 14] |
_________________ Elen sila lúmenn' omentielvo |
|
| Back to top |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Wed May 21, 2008 3:52 pm Post subject: |
|
|
| thanks |
|
| Back to top |
|
 |
|