<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Проход по линкам в RichText поле]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=957&amp;type=atom" />
	<updated>2015-12-07T06:59:16Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=957</id>
		<entry>
			<title type="html"><![CDATA[Проход по линкам в RichText поле]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=124486#p124486" />
			<content type="html"><![CDATA[<p>В документе есть поле типа NotesRichText, в нем несколько линков, Получаем в docOLD документ по ссылке.</p><div class="codebox"><pre><code>Dim rti As NotesRichTextItem
Dim rtnav As NotesRichTextNavigator
Dim rtlink As NotesRichTextDocLink
Dim flag As Boolean

Set rti = docMU.GetFirstItem(&quot;ParentOrg&quot;)      
flag = rtnav.FindFirstElement(RTELEM_TYPE_DOCLINK) 

Do While flag
Set rtlink = rtnav.GetElement    
If rtlink.DocUnID &lt;&gt;&quot;&quot; Then         &#039;    есть линк
Set docOLD = MUdb.GetDocumentByUNID(rtlink.DocUnID) &#039;док по линку

If Not ( docOLD Is Nothing ) Then    
id1$ = docOLD.UniversalID
End If

End If

flag = rtnav.FindNextElement()    &#039; след ссылка 
Loop</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-12-07T06:59:16Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=124486#p124486</id>
		</entry>
</feed>
