Clarion ProCodeBlock Documentation

Display Help Topic With ShellExecute

Display Help Topic With ShellExecute

Previous topic Next topic  

Display Help Topic With ShellExecute

Previous topic Next topic  

The ProCodeBlock class makes it easy to display a HTML help topic with ShellExecute.

 

Note:  This is useful because if you exit the program after the CodeBlock, the help file displayed with ShellExecute will stay open (unlike the topic displayed with the cwHHGlobal topic - which would close with the program).

 

You can do this by:

Using the #CODE template

Using hand code

 

 

Displaying a HTML help topic with the #CODE Template

 

To display a HTML help topic with the #CODE template, just insert the template in any embed point (such as the Accepted event of a button or menu selection)

 

clip0039

 

Then just enter the name of the help .chm file and topic (without quotes) and click Ok.

 

That is all there is to it!

 

 

 

Displaying a HTML help topic with hand code

 

To display a website URL with hand code, use the following syntax:

 

CodeBlockUtil.CodeBlockShellExecuteHelp( 'CodeBlock.chm', 'Demo.htm' )

 

or this syntax:

 

CodeBlockUtil.HelpFile      = 'CodeBlock.chm'

CodeBlockUtil.HelpFileTopic = 'Demo.htm'

CodeBlockUtil.CodeBlockShellExecuteHelp()