Hello everyone,
I used the following code in a textbox's lostfocus event to ensure the user input 0-3 for it. If the value isn't 0-3, I want the program to empty the textbox and set foucus on it. I used the following code:
if val(this.value)<0 or val(this.value)>3 then
messagebox("Value must be 0-3", 16)
this.value=""
this.setfocus()
endif
but the setfocus() just not working, after the messagebox only the next object of the textbox get the focus. What should I do to prevent this?
Thanks a lot!
error(503): file structure failure, signature file corrupted.