It is simple!
If you are going to reference a global variable
in a function, you must put a line such as:
def SomeFunc():
global seqno
print 'Using serial ' + `seqno`:
Notice also that you can't print an integer type
you must convert it to a string......
(Thus the back-quotes)
tom
---------------------------------------------------------------
Thomas J. Jones | PHONE : +61 2 351-3503 | FAX: +61 2 351-3838
Basser Department of Computer Science, Sydney University
We have tamed lightning and used it to teach sand to think.
---------------------------------------------------------------