In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Setkey()

Xailer English public forum
Michael Hagl
Mensajes: 4
Registrado: Mié Oct 25, 2006 1:13 pm

Setkey()

Mensaje por Michael Hagl »

Hello,
I make tests with xHarbour and have a Problem.
Why do this code not work ?? When I press the F5-key, there is no call of
the Alert()-Function.
It seems that Setkey is not evaluated inside READ.
I use xailer for compiling
Version: xHarbour build 0.99.61 Intl. (SimpLex)
***********************************************************
#include "inkey.ch"
Procedure Main()
Local cTest := Space(5)
Local getlist := {}
Setkey(K_F5,{||Alert("F5")})
@ 8,1 Say Version()
@ 10,1 Say "Test : " Get cTest
Read
Return
*******************************************************
Michael Hagl
Responder