Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slow keypress-event?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01514127
Message ID:
01514137
Vues:
49
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 &&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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform