Just one yes or not!

From: Alexander (alexander_at_edem.g12.br)
Date: 11/26/03


Date: 26 Nov 2003 12:31:23 -0800

Hi all!

I need one yes or not for one question (sorry for my horrible english).

I try understand vwait command. So, que question:

Command "vwait" just work if I have one event to be processed (what is events)?

Just work if I have one "fileevent", "after" or other TK event?

Just in this cases?

For example (why this script generate one error [wait forever]?):

set infinite 0
set counter

puts "hello"

incr counter

if {$counter == 4} {
      puts "script is finished"
      set infinite 1
}

vwait infinite

Is it occur because this script no have any event?

I ever need (using vwait) use "fileevent", "after" or TK event?

Thanks a lot for your patience!
Alexander
Brazil