My fault - Larz60+ answer is the right one, please ignore my response.
Hi,
It looks as though you are trying to compare two values, where one is a number (int) and the other is text (str).
I have had a quick look at the code but need to make some changes to include the variabes being passed to the function.
If the two variables are actually numeric, there still may be a problem due to the fact that one of them is being stored as a string.
Try defining both variables as numircs by putting int( ) around them, i.e. int(variable-name) and see how that goes.
Good luck and let me know how it goes...
Bass
Hi,
It looks as though you are trying to compare two values, where one is a number (int) and the other is text (str).
I have had a quick look at the code but need to make some changes to include the variabes being passed to the function.
If the two variables are actually numeric, there still may be a problem due to the fact that one of them is being stored as a string.
Try defining both variables as numircs by putting int( ) around them, i.e. int(variable-name) and see how that goes.
Good luck and let me know how it goes...
Bass
"The good thing about standards is that you have so many to choose from" Andy S. Tanenbaum