GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Author for URL in GenoPro reports.
Posted Thursday, January 31, 2008 - Post #20653
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 2.0.1.4

Last Login: Saturday, September 21, 2019
Posts: 16, Visits: 89
I was happy to learn about the <?html?> tag that can be used in reports. But it's a little hard for me to use for URLs. By the time I type the address twice, add quotes, etc. for a url (<a href="http://GenoPro.com">GenoPro.com</a>Wink, I am liable to have some errors. And then, in order to test it, I have to generate a report, go to a browser, and try to remember who all those people are I added URLs to.

So I added the <?url processing instruction. You can add this case to "Select Case LCase(strParams(0))" in the function StrFormatText(obj, strText) in Util.vbs.

------------------
Case "url"
  if ubound(strParams) >= 1 and lcase(strMode) = "<?text?>" then
    strTemp = strParams(1)
    if instr(strTemp, "://") = 0 then strTemp = "http://" & strTemp
    strResult = strResult & "<a target=""_top"" href=""" & strTemp & """>" & strParams(1) & "</a>" & Util.HtmlEncode(strSubParts(1))
  else
    Report.LogError Util.FormatString(Dic("ErrorTextFormat"), obj, strSubParts(0))
  end if
------------------

Now I can just type
  <?url GenoPro.com?>
in a note, instead of
  <?html?><a href="http://GenoPro.com">GenoPro.com</a><?text?>


Edited: Thursday, January 31, 2008 by BobWebster



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse