Init (initialize HTML Help object)

Top  Previous  Next

 

Init( helpfile, [keycode])

 

 

Helpfile

A string constant, variable, EQUATE, or expression containing the help file name. This should be enclosed in single quotes.

Keycode

A numeric keycode or keycode EQUATE. If omitted, the default value is 123, F12Key. Keycode equates can be found in KEYCODES.CLW.

The Init method initializes the TagHTMLHelp object and opens the specified help file. This method also aliases the F1 key to the F12 (keycode 123) key by default in order for the rest of the methods to be able to check for this keystroke. If F12 is used by some other function in the application this may be changed to whatever keystroke is unused in the application.

Example:

oHH.Init( 'cwhh.chm' )

Return Data Type: BYTE