home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / share / Dos / VARIOS / siena / oplexam / BD_CHAR.TXT < prev    next >
Encoding:
Text File  |  1994-09-06  |  1.3 KB  |  52 lines

  1.  
  2.  
  3.  
  4. Character codes
  5.  
  6.  
  7.  
  8. To find out a character's character code either look up the character 
  9. in the table given in the back of your User Guide, or press the Calc 
  10. button and type the "%" sign followed by the character  
  11. for example "%P" returns 80. Characters with codes from 0 to 127 
  12. are the same as in the ASCII character set. Codes 128 to 255 
  13. are compatible with the IBM code page 850.
  14.  
  15. Codes from 256 upwards are for other Series 3a keys  see 
  16. the list below.
  17.  
  18. *** Character codes of special keys
  19.  
  20. The GET and KEY functions return the character code 
  21. of the key that was pressed. Some of the keys are not in the character 
  22. set. They return these numbers:
  23.  
  24. Esc           27    Tab        9
  25. Delete        8    Enter        13
  26.  
  27.  
  28. Special keys
  29. " UP "        256    " DOWN "        257
  30. " RIGHT "        258    " LEFT "        259
  31. Pg Up       260     Pg Dn        261
  32. Home          262     End            263
  33. Menu          290     Help            291
  34. DIAMOND        292
  35.  
  36. The Psion key adds 512 to the value of the key pressed. For example, 
  37. Psion-a is 609 (512+97), and Psion-Help (Dial) is 803 (512+291).
  38.  
  39. *** Special character codes with PRINT
  40.  
  41. These values can be used with PRINT and CHR$():
  42. 7    beep
  43. 8    backspace
  44. 9    tab
  45. 10    line feed
  46. 12    form feed (clear screen)
  47. 13    carriage return (cursor to left of window)
  48.  
  49. For example, "PRINT CHR$(8)" moves the cursor backwards, one 
  50. character to the left.
  51.  
  52.