Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow keypress-event?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Slow keypress-event?
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01514127
Message ID:
01514127
Views:
123
Hi there,

in a lot of apps I use the following way to search in a grid:

- The grid consists of standard textboxes
- The keypress-event of the textboxes calls a form-method with the keycode:

thisform.dosuche(nKeyCode)

the method dosuche works like this
   DO case
      case between(nKeycode,48,57)
              thisform.suchtext = thisform.suchtext + CHR(nKeycode)

      case nKeycode == 13 &&AND cOrder <> "kundennr
           ... input completed, do the search
This usually works fine and is mainly used for scanning barcode-labels.
Now I implemented this code in a small program with a form, which runs as a
top-level-form and the reading of the input gets real slow, which means it takes
about half a second to process a single char. Which means it takes about 6-7
secondes to scan a 13-digit barcode. The following search works as fast as expected
And what makes it more strange is, that this happens only in the compiled exe-file.
When running the app within the IDE, everything works fine.
So what might I have done wrong?

Thanks in advance

Thomas
Next
Reply
Map
View

Click here to load this message in the networking platform