Home » Developer & Programmer » Forms » How to suppress Undefined key
How to suppress Undefined key [message #201405] Sat, 04 November 2006 01:57 Go to next message
boyet-x
Messages: 23
Registered: August 2006
Junior Member
Hi guys,

Is there a way to suppress the Undefined key error raised during execution of a forms trigger and let it continue to run as if there is no error?

My app is a barcode reader.
I defined a fix-length field (Autoskip is on) to accept the barcode input.
But when the input string is longer than the max field size, the remaining characters will be raised (I think) as Undefined keys.
This happens in Enter-Query mode.

I am expecting that when string input has reached max, should still continue to go to next item (as expected when autoskip is on. and I dont want to use on-error trigger due to some other constraints on my app).

Should I set message_level or something? but Im afraid that it might affect other errors. Do you have any idea?

Thanks~
Re: How to suppress Undefined key [message #201406 is a reply to message #201405] Sat, 04 November 2006 02:07 Go to previous messageGo to next message
boyet-x
Messages: 23
Registered: August 2006
Junior Member
Btw, I am also wondering if autoskipping itself triggers the Undefined key error.

Any help will be greatly appreciated.

Thanks~
Re: How to suppress Undefined key [message #201555 is a reply to message #201405] Sun, 05 November 2006 19:00 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you tried coding the form without any triggers or error handling? What message do you get if you have too many characters? Try it out and tell what message you get.

David
Re: How to suppress Undefined key [message #202078 is a reply to message #201555] Wed, 08 November 2006 02:37 Go to previous message
boyet-x
Messages: 23
Registered: August 2006
Junior Member
It's ok now.

I used another approach. I have reset the autoskip to off. Then increased max length of the field. Then to get the value of the barcode, I have created a timer such that I could put the process in When-Timer-Expired trigger.

Not sure how performance would be affected though.
Previous Topic: Making Initcaps
Next Topic: Timed Out and Connection Again
Goto Forum:
  


Current Time: Mon Dec 05 03:04:02 CST 2016

Total time taken to generate the page: 0.05902 seconds