HTML-Help Extension

HTML-Help Extension

Postby byte-one » Mon Jan 05, 2009 1:44 pm

Antonio, please replace this modified function to helpchm.prg

Code: Select all  Expand view
static function ExtHtm( cTopic )   //modified to accept anchors (z.B. cTopic#one or cTopic.htm#one )
               //from byte-one, 2009

   local nPos,cTemp

   if at("#",cTopic) > 0           //if anchor in cTopic
      nPos := at("#",cTopic)
      cTemp := subs(cTopic,1,nPos-1)  //extract string before "#"
      cTemp += if(".htm" $ lower( cTemp ),"",".htm")   //add ".htm" if not exist
      cTopic := cTemp + subs(cTopic,nPos,len(cTopic))   //add "#anchor" to cTopic
   else
      cTopic += if(".htm" $ lower( cTopic ),"",".htm")   //add ".htm" if not exist
   endif

return (cTopic)
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: HTML-Help Extension

Postby Antonio Linares » Thu Jan 08, 2009 10:43 am

Günther,

Updated, thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41315
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests