FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HTML-Help Extension
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
HTML-Help Extension
Posted: Mon Jan 05, 2009 01:44 PM
Antonio, please replace this modified function to helpchm.prg

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: HTML-Help Extension
Posted: Thu Jan 08, 2009 10:43 AM

Günther,

Updated, thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion