"Search" bookmark in help file

Posted in Help

If you want to give access to help file from your program., then you may use this code. You may call a "search" bookmark of some help file.

procedure TForm1.Button1Click(Sender: TObject);
var
  TempStr: string;
begin
  TempStr:='';
  Application.HelpFile:='C:\...\Help\Delphi3.HLP';
  Application.HelpCommand(HELP_PARTIALKEY, LongInt(@TempStr));
end;