Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs







Recent posts

Thu 17 Sep 2020

Exciton Boost - WYSI(hopefully)WYG



Tue 15 Sep 2020

Exciton Boost - Formula(s) for success



Tue 15 Sep 2020

Pushing harder at the limits of formulas


September, 2020
SMTWTFS
  01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

Search the weblog





























Genii Weblog

Automatic hyperlinking

Tue 24 May 2005, 03:28 PM



by Ben Langhinrichs
A friend asked me how I handle hyperlinks to common destinations, as I frequently answer questions in e-mails or comment on my blog about our products, and they always take the form of @Midas Formulas or CoexEdit.  He wanted to know if I keep copies handy, or have add them manually, or what.

The answer, of course, is that I use our Midas Rich Text LSX to do it for me.  The basic code is below (the whole agent is only 25 lines with comments):

' *** Connect to BlogBodyRT field and perform LinkMatching  ****
Call rtitem.ConnectBackend(doc.Handle, "BlogBodyRT", True)
 
rtitem.URLFont = "Blue Underline"
If mode Then uidoc.Save
uidoc.Close
Call rtitem.Everything.LinkMatching("", "GeniiKeywords.nsf", "Keyword View", "Term", "Link", |Target="_new"|)
rtitem.Save
Set uidoc = ws.EditDocument(mode, doc)

So, do you have a common set of keywords you would be able to automatically hyperlink?

Copyright 2005 Genii Software Ltd.

What has been said:

No documents found