Beranda > Delphi > Search for help

Search for help

Looking for a way to open your application’s help file to it’s search window? All you have to do is pass the name (and the path) of your help file and the string you want to search for to the following HelpSearch() function:

procedure HelpSearch(sHelpFName, sSearchKey: string);
  pc: PChar;
  Application.HelpFile := sHelpFName;
  pc := StrAlloc(Length(sSearchKey) + 1);
  StrPCopy(pc, sSearchKey);
  Application.HelpCommand(HELP_PARTIALKEY, LongInt(pc));

For example:

HelpSearch('DELPHI.HLP', 'colors');

If you just want to open the “search” window without specifying a search string:

HelpSearch('DELPHI.HLP', '');
  1. Mei 21, 2013 pukul 11:29 am

    I simply could not go away your site before suggesting that I really loved the standard information
    a person provide to your visitors? Is going to be again continuously to check out
    new posts

  2. Februari 6, 2014 pukul 10:42 pm

    Hiya! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly?

    My blog looks weird when viewing from my iphone 4. I’m trying to find a template or plugin that might
    be able to resolve this issue. If you have any recommendations, please share.
    Thank you!

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )


Connecting to %s

%d blogger menyukai ini: