home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9458 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.4 KB  |  71 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!purdue!mentor.cc.purdue.edu!comm.mgmt.purdue.edu!landers.mgmt.purdue.edu!landers
  3. From: landers@comm.mgmt.purdue.edu (Chris Landers)
  4. Subject: CLIPPER (S'87) Inkey() values for Alt-Keys
  5. Summary: Here's the table the docs left out....
  6. Sender: news@comm.mgmt.purdue.edu (News owner)
  7. Message-ID: <landers.161.728081203@comm.mgmt.purdue.edu>
  8. Date: Tue, 26 Jan 1993 20:46:44 GMT
  9. Lines: 59
  10. Organization: Krannert Graduate School of Management, Purdue University
  11.  
  12.  
  13. ATTN: CLIPPER USERS:
  14.  
  15. The manual S'87 says inkey() returns values for alt-letter keys,
  16. and claims the values can be found in the appendex.  In fact, the 
  17. appendix mearly contains values for function, shift-function,
  18. ctrl-function, alt-function, SOME ctrl-letter keys, and a standard 
  19. ASCII table.  _NO_ listing of alt-letter key values.
  20.  
  21. I wrote a quick program to trap the alt-letter key values and
  22. below are the results.  Since I spend an hour or so on this I thought 
  23. I'd share it and maybe save you some time too.  My goal was to
  24. assign a procedure to alt-E, which I have been able to do.
  25.  
  26. humm... I just noticed that my manual at work is S'87, while my manual at 
  27. home has the '88 update pages, this may be part of my problem....)
  28. Anyway, the manual (again S'87) says inkey() return values range from 
  29. -39 to 386, where the negative numbers are for function keys.
  30. You'll notice that 386-255=131 and the table below has only 26 values on it.
  31. Anyone else know what are the other values for > 255 ??
  32.  
  33. Also, anyone know why these aren't in sequence?  Looks to me like
  34. they just go across the keyboard rather than through the char set.
  35.  
  36. Alt-A = 286
  37. Alt-B = 304
  38. Alt-C =   0   * I couldn't get a response here, even with setcancel()
  39. Alt-D =   0   * and alt() both off, my guess is inkey() ignores these....
  40. Alt-E = 274
  41. Alt-F = 289
  42. Alt-G = 290
  43. Alt-H = 291
  44. Alt-I = 279
  45. Alt-J = 292
  46. Alt-K = 293
  47. Alt-L = 294
  48. Alt-M = 306
  49. Alt-N = 305
  50. Alt-O = 280
  51. Alt-P = 281
  52. Alt-Q = 272
  53. Alt-R = 275
  54. Alt-S = 287
  55. Alt-T = 276
  56. Alt-U = 278
  57. Alt-V = 303
  58. Alt-W = 273
  59. Alt-X = 301
  60. Alt-Y = 277
  61. Alt-Z = 300
  62.  
  63. =============================================================================
  64.  
  65.  
  66.     <================================><=================================>
  67.     ||  Christopher Landers          ||  Purdue University - KRAN 708  ||
  68.     ||  Krannert Computing Center    ||  West Lafayette, IN  47907     ||
  69.     <=================== landers@comm.mgmt.purdue.edu ==================>
  70.  
  71.