FKMAX( ) (Función)

Devuelve el número de teclas de función programables o combinaciones de teclas de función del teclado.

FKMAX( )

Valores devueltos

Numeric

Observaciones

El valor devuelto por FKMAX( ) se ve afectado por SET COMPATIBLE. Cuando SET COMPATIBLE tiene el valor FOXPLUS (el valor predeterminado), FKMAX( ) devuelve el número de teclas de función. Cuando SET COMPATIBLE es DB4, FKMAX( ) devuelve el número de teclas de función y combinaciones de teclas de función (F1, CTRL+F1, MAYÚS+F1, F2, CTRL+F2, MAYÚS+F2...).

Ejemplo

CLEAR
SET COMPATIBLE OFF
? 'COMPATIBLE OFF'
?
FOR nCount = 1 TO FKMAX( )  && Loop for # of function keys
   ? FKLABEL(nCount)  && Display programmable function keys
ENDFOR
SET COMPATIBLE ON

?
? 'COMPATIBLE ON'
?
FOR nCount = 1 TO FKMAX( )  && Loop for # of function keys
   ? FKLABEL(nCount)  && Display programmable function keys
ENDFOR

Vea también

FKLABEL( ) | SET COMPATIBLE | SET FUNCTION