Antivirus maybe?
>
>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
> ... 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
--sb--