chpicker
Programmer
- Apr 10, 2001
- 1,316
My error log occasionally comes up with this error. It happens maybe once a week or so. It claims to be happening on line 32 of my browsetable.prg file. Here is the line:
[tt]
nKeyPress=INKEY(0,'H')
[/tt]
The error doesn't make any sense to me. I'm passing 2 literal constants to the INKEY() function. This error, if being reported correctly, should occur EVERY time the code runs, not just once a week.
The browsetable function is a generic function used throughout my program for data entry and data lookup forms. It allows a user to search for a field in a grid, and is called by the KEYPRESS event of the grid's textbox. I have declared nKeyPress to be a LOCAL variable, so it can't interfere with any pre-existing variable of that name.
Has anyone else ever seen anything like this? Is there something I'm missing that could cause the line to generate this error? Or is the error being reported incorrectly and something else is going on? Any insight?
Thanks,
Ian
[tt]
nKeyPress=INKEY(0,'H')
[/tt]
The error doesn't make any sense to me. I'm passing 2 literal constants to the INKEY() function. This error, if being reported correctly, should occur EVERY time the code runs, not just once a week.
The browsetable function is a generic function used throughout my program for data entry and data lookup forms. It allows a user to search for a field in a grid, and is called by the KEYPRESS event of the grid's textbox. I have declared nKeyPress to be a LOCAL variable, so it can't interfere with any pre-existing variable of that name.
Has anyone else ever seen anything like this? Is there something I'm missing that could cause the line to generate this error? Or is the error being reported incorrectly and something else is going on? Any insight?
Thanks,
Ian