This note pertains to R:Base for DOS 6.5++.  Any enlightening comments would
be appreciated.


Lastkey:

+--------------------------------- SYNTAX -------------------------------------+
�                                                                              �
�  Gets the text value for the last key read from the keyboard.  If a key has  �
�  been remapped you get the remapped key using 0 for the parameter.  If you   �
�  use 1 for the parameter you will get the original key before remapping.     �
�                                                                              �
�  (LASTKEY(0))                                                                �
�    or                                                                        �
�  (LASTKEY(1))                                                                �
�                                                                              �
+------------------------------------------------------------------------------+


Doesn't appear to work.  One gets the same value returned from the LASTKEY
function whether or not the key has been remapped.

For example in the following code "[F8]" is returned in both vt and vx when
LASTKEY is used with the arguments shown.  When argument "0" is used LASTKEY
should return "[F4]".
-------------------------------------
SET KEYMAP [F8] OFF
SET KEYMAP [F8] = [F4]

WHILE 2 > 1 THEN
  FILLIN vy=0 USING 'vy:'
  SET VAR vt = (LASTKEY(0))
  SHO VAR vt
  SET VAR vx = (LASTKEY(1))
  SHO VAR vx
  IF vt = '[Esc]' THEN
    Break
  ENDIF
ENDWHILE
-------------------------------------

TIA,
Bernie

Reply via email to