No help-IDs are defined.
This could be the required changes:
- function chmHelpTopic( cnTopic )
local cHelpFile := GetHelpFile()
local cHelpTopic := GetHelpTopic()
local nCmd := 0
if Empty( cHelpFile )
MsgStop( "No Help file available", " Attention" )
return .F.
endif
if PCount() == 0
// display contents with default topic
nCmd := HH_DISPLAY_TOC
cnTopic := nil
else
do case
case cnTopic == "N" // help id of topic
should be ->>> case valtype(cnTopic) == "N"
nCmd := HH_HELP_CONTEXT
case cnTopic == "C" // help topic name
should be ->>> case valtype(cnTopic) == "C"
nCmd := HH_DISPLAY_TOPIC
cnTopic := ExtHtm( cnTopic )
Another problems:
1.) If I define a Help-ID for a dialog, the help-item with this ID are not shown with F1, always the index. In tests the ::nHelpId from this dialog in Windows-class are empty instead the defined help-id!
2.) When I call the help on an dialog with help-ID and with a folder in this dialog then first shown for a short time the right help-ID and then also the helpindex.
3.) Another point of interest are help-IDs for the folder-dialogs! (oFld:aDialogs[1...,2...,]:nHelpId := 22) and the help-ID from the parent dialog from folder.
Please check this.