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.

Binding from a list

Help for those learning Tcl or writing their own scripts.
Post Reply
d
dokueki
Voice
Posts: 31
Joined: Sat Apr 28, 2007 8:42 am
Location: Bat Yam, Israel
Contact:

Binding from a list

Post by dokueki »

Hey. I want to define a list of keywords (example 'set keywords "kw txt keyword morekeywords"') and bind for each keyword in the list (bind kw, bind txt, bind keyword, etc)
How would I go upon doing this?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

foreach word $wordlist {bind type flags $word procname}

Something like that.. I'll let it up to you to read the FAQ about how to read/write files to create your list.
d
dokueki
Voice
Posts: 31
Joined: Sat Apr 28, 2007 8:42 am
Location: Bat Yam, Israel
Contact:

Post by dokueki »

Thank you! I tried foreach but I got the syntax wrong ^_^;; XD
Post Reply