Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control keys and function keys
Message
 
 
À
24/09/1997 19:45:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00051499
Message ID:
00051574
Vues:
39
>Posted this the other day. Anyone have any ideas??
>
>I have disabled my function keys with CLEAR MACROS but when I press a
>function key on a text field I get control characters.
>The format property of my textfield is K!
>I've noticed that if I take out the ! it works fine i.e. nothing happens
>when I press a function key.
>What is going on here? Any ideas
>
>Also is there an easy way apart from lots of ON KEY LABELs to disable control keys which are not relevant to avoid getting control characters in my edit boxes?
>
>Thanks

Danged if I know. I tried:
  In the Form's Init --
      for i = 1 to fkmax()
          set function 1 to ""
      endfor

  In the TextBox InterActiveChange --
      if LastKey() < 0   && lastkey() = -1 for F2, -2 for F3, etc.
         This.Value = ""
         return 0
      endif
Putting the LastKey() code in the IAC method works.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform