Mike,

I know all this. My question is can I change the contents of the lastkey
"buffer" in code and not by pressing the keyboard? If not, I will need to
find another way to make this section of code do what I need it to do.

Paul

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mike Byerley
Sent: Thursday, June 14, 2012 3:13 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Is there a Way to Reset the Lastkey Value Without
Using the Keyboard

That is where you capture the value of LastKey to an intermediary variable
so you can clear the contents at an appropriate time like PAUSE 2 USING
'Press the Enter Key'
SET VAR vkey1 TEXT = (LASTKEY(0))
SET VAR vkey2 TEXT = (LASTKEY(1))
SET VAR vMsg TEXT = ('According to LastKey 0, you pressed the' & .vkey1 &
'Key.')
PAUSE 2 USING .vMsg
SET VAR vMsg TEXT = ('According to LastKey 1, you pressed the' & .vkey2 &
'Key.')
set var vKey1 = null
set var vKey2 = null

If (Lastkey(0)) = ['enter'] then  {Here is where you have a failure}
-- do something
endif
If vKey1  = ['enter'] then   {Now you can access vKey1 and rely on its value

being }
                                          {what you set it to or what you
expected it to contain}
-- do something
endif

----- Original Message -----
From: "Paul Buckley" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Thursday, June 14, 2012 2:38 PM
Subject: [RBASE-L] - Is there a Way to Reset the Lastkey Value Without Using
the Keyboard


: I'm using the latest version of 9.1-64 and I'd like to know if I can reset
: or change the value of lastkey(0) without touching the keyboard? I've been
: checking for a value of [Enter] in the On Exit EEP of a ListView but if
they
: choose Enter at some point and then navigate using the mouse the value of
: lastkey(0) is still [Enter].
:
: Thanks in advance,
: Paul
:
: 


Reply via email to