It is not an error in the documentation are two different syntaxes:andyglezl wrote:Hola
Estoy tratando de utilizar dentro de un GRID, el evento ON KEY pero me despliega ERROR...
No estoy seguro si esta sintaxis que trae la Referencia esté correcta ?
-----------------------------------------------------------------------------------------------------------------
hello
I'm trying to use within a GRID, the ON KEY event but it displays ERROR ...
I'm not sure if it brings the reference syntax is correct ?
--------------------------------------------------------------------------------------------------
OK ya encontré como...(pero entonces está mal la referencia?)
OK and found as ...(but then bad reference?)
Code: Select all
... ON KEY OnKey() ... Function OnKey() IF HMG_GetLastVirtualKeyDown() == VK_F9 HMG_CleanLastVirtualKeyDown() MSGINFO( "Entre a ONKEY()") ValGrid( 1, 2, 1, 1, 1, 1 ) ENDIF Return NIL
Code: Select all
@ 10,10 GRID <name> ;
.... ;
ON KEY <onkey> ;
....
Code: Select all
DEFINE GRID <name>
ONKEY <onkey>
END GRID