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 | |
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08