Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert this code to into a visual form
Message
De
25/09/2004 12:20:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00945616
Message ID:
00946005
Vues:
30
>>>The basic outline of what you have to do is this:
>
>
>An @...SAY will be converted to a Label control.
>
>An @...GET will be converted to a TextBox.
>
>Any SET commands go to the form's Load() Event.
>
>A READ is not required. If you want to avoid the user doing something in other forms, make the form modal.
>
>Validation of user input can be done in several events: TextBox.Valid(), TextBox.InteractiveChange(), TextBox.LostFocus() are commonly used.>>
>
>Thanks Hilmar,
>
>I had done that, but the textboxt for the card number accept manual entry, I want not to accept entries unless entries from a magnetic card / smart card. just like a readonly control but it can write/display when a card is swipe/inserted to a card reader..
>
>Thats what I ask for help..
>
>Thanks..

PMFJI,
Differentiating a swipe from a manual entry is not an easy task. Practically both sends scan codes to keyboard input. I've done that but as I said not very easy and debatable. Relies on ideas:
-A human cannot type as fast as a swipe card input
-A human cannot type keys with regular intervals as swipes do
(If you check timings swipe input per character are exact multiples of one another character - usually N and 2N)
-A swipe input should not be a single input (CTRL+V)
-Modifier keys are up with swipes
Not a total answer but gives starters I think.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform