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
В | Copy Code |
---|---|
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 |