Gene,
It's not a bug but do***ented behavior. According to VFP help for
FKLABEL() function, "The value of nFunctionKeyNumber should be from 0
through the number of function keys minus 1"
Would following work for you?
FOR i=1 TO FKMAX()
? FKLABEL(i-1), ON("Key", FKLABEL(i-1))
ENDFOR
--
--sb--
VFP MVP
Wirchenko wrote:
> I have a function key setup that I use in development. Some of
> the keys I do not use that much. It would be handy to be able to
> press, say <F12>, and get a listing of the function key assignments.
>
> I can not see anything for doing this. It appears that the only
> way to get this is to parse the output of list status. This is less
> than optimal.
>
> Am I overlooking something?
>
> In searching, I see what appears to be a bug with fkmax(). It
> appears to return a value that is too high by one. The labelling
> starts with <F2> (which is fklabel(1)). fklabel(fkmax()) returns an
> empty string. This is the case with both settings of set compatible.
>
> Sincerely,
>
> Gene Wirchenko
>
> Computerese Irregular Verb Conjugation:
> I have preferences.
> You have biases.
> He/She has prejudices.


|