FKMAX( ) Function
Returns the number of programmable function keys or function key combinations on your keyboard.
FKMAX( )
Return Value
Numeric
Remarks
The value returned by FKMAX( ) is affected by SET COMPATIBLE. When SET COMPATIBLE is set to FOXPLUS (the default), FKMAX( ) returns the number of function keys. When SET COMPATIBLE is set to DB4, FKMAX( ) returns the number of function key and function key combinations (F1, CTRL+F1, SHIFT+F1, F2, CTRL+F2, SHIFT+F2, ...).
Example
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