Article ID:qGEN002
Date Revised:September 09, 1997
Keywords:Help, Common Dialogs, SYS(1023), SYS(1024), Help Workshop

Question: How can the help buttons on the common dialogs like GetFile() access my application's help file?

Answer: The application help file must have help topics with ContextIDs that match the ID requested by the dialog. Then the question becomes how do you find the ContextID?

  1. This option works inside VFP
    1. sys(1023) Enable Help Diagnostic Mode
    2. ? GetFile()
    3. Click the Help button
    4. Note the ContextID
    5. Click No to not pass it on to the help engine
    6. sys(1024) Disable Help Diagnostic Mode

  2. This option works both inside and outside VFP
    1. Start Help Workshop
    2. Select File, Help Author from the menu so that it is checked
    3. SET HELP TO YourHelpFile We need an unfound topic error to occur
    4. ? GetFile()
    5. Click the Help button
    6. Click OK to close the Error 129 messagebox
    7. The next messagebox it will display twice will show the ContextID embedded in the message text

Use that number as the appropriate ContextID for the topic in your help file.

Some sample ContextIDs:

DialogContextID
GetFile()268435992
GetFont()268436033
GetPict()268435994
PutFile()268435993
File Does Not Exist Error805322787


1