Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control keys and function keys
Message
 
 
To
24/09/1997 19:45:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051499
Message ID:
00051574
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform