Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using On Key Label
Message
De
29/06/2001 03:42:33
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Using On Key Label
Divers
Thread ID:
00525060
Message ID:
00525060
Vues:
43
Hello everyone,

I have a procedure to be run when using press the keyboard, my code is like:
on key label 0 MyFunction("0")
on key label 0 MyFunction("1")
.
.
.
on key label 0 MyFunction("Z")
of course I dont want to repeat the code 36 times, so I tried this:
for-loop(i)
  Chk=transform(i)
  on key label &Chk MyFunction("&Chk")
endfor
but there is syntax error with it, is it possible to do it in a simpler form? or must I repeat the code 36 times?

Thanks a lot!
error(503): file structure failure, signature file corrupted.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform