Code: Select all
Tcl error [TAdd]: can't read "wrotetoerr": no such variable
Code: Select all
question1*answer
question2*answer
....aaand show must go on.
Code: Select all
Tcl error [TAdd]: can't read "wrotetoerr": no such variable
Code: Select all
question1*answer
question2*answer
The script isn't initializing that variable for all instances. Rather than set a 0 at top and when an error occurs, set a 1. It is setting the 0's and 1's itself manually. So to avoid that error, you can init that error variable before it enters it's while loop to iterate the file contents.Exedore wrote:Code: Select all
Tcl error [TAdd]: can't read "wrotetoerr": no such variable
Code: Select all
while {![eof $qesfil]} { set qline [gets $qesfil]
Code: Select all
set wrotetoerr 0