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.

[solved] trim, trimleft not working

Help for those learning Tcl or writing their own scripts.
Post Reply
l
lenore
Voice
Posts: 9
Joined: Sat Mar 15, 2008 5:48 am

[solved] trim, trimleft not working

Post by lenore »

using a pretty simple script i'm unable to get trim or trimleft work

Code: Select all

set avariable [trimleft $anothervariable *!]
but i keep getting in party
Tcl error [scipty.tcl]: invalid command name "trim"

any ideas? i did do iconfig so maybe i missed out a valuable module? the only script i can find them mentioned in is sentinel.tcl which isn't loaded
Last edited by lenore on Mon Mar 17, 2008 7:04 am, edited 1 time in total.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

it's string <option> <args>
not <option> <args>

(string is neccessary)
l
lenore
Voice
Posts: 9
Joined: Sat Mar 15, 2008 5:48 am

Post by lenore »

damnit, thankyou :)
Post Reply