open_web_page Procedure

Unit
Unit5

Declaration
Procedure open_web_page(url: string);

Implementation

procedure open_web_page(url:String);
var ini1:TIniFile; inetpath:String;
begin
ini1:=TIniFile.Create(form2.root+'wikibrowse.ini');
inetpath:=ini1.ReadString('system','web_browser','');
StrReplace(inetpath,'%url%',url, [rfIgnoreCase, rfReplaceAll]);
inetpath:=form2.compile_path(inetpath);
if trim(inetpath)='' then ShellExecute(0,'open',PChar(url),nil,nil,SW_MAXIMIZE)
else WinExec(PChar(inetpath),SW_MAXIMIZE);
ini1.free;
End;


HTML generated by Time2HELP
http://www.time2help.com