<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to get no. of items appended into rich text field</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-no-of-items-appended-into-rich-text-field/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-no-of-items-appended-into-rich-text-field/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Jun 2013 23:43:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: edvabnik</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-no-of-items-appended-into-rich-text-field/#comment-106763</link>
		<dc:creator>edvabnik</dc:creator>
		<pubDate>Mon, 16 Apr 2012 08:20:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-106763</guid>
		<description><![CDATA[I have created a memo with this agent:
Sub Initialize
	Dim s As New NotesSession
	Dim db As NotesDatabase
	Dim doc As NotesDocument
	Dim rtItem As NotesRichTextItem
	Dim i%
	Set doc = s.CurrentDatabase.CreateDocument
	doc.Subject = &quot;100 Lines in Body&quot;
	doc.SendTo = s.UserName
	Doc.Form = &quot;Memo&quot;
	Set rtItem = doc.CreateRichTextItem(&quot;Body&quot;)
	For i = 0 To 99
		Call rtItem.AddNewline(1, True)
		Call rtItem.AppendText(Str(i) + &quot; line in Body is here yxdvyxcvyxcv yxcv yxcv yxcv yx cvyx cv&quot;)
	Next
	Call doc.Save(True, False)
	Call doc.Send(False)
End Sub

Then I could count the number of lines in the body field of this memo with the following agent:

Sub Initialize
	Dim s As New NotesSession
	Dim doc As NotesDocument
	Dim rtItem As NotesRichTextItem
	Dim item As Variant
	Dim plainText$, vTmp
	
	Set doc = s.CurrentDatabase.UnprocessedDocuments.GetFirstDocument
	If Not doc Is Nothing Then
		If doc.HasItem(&quot;Body&quot;) Then
			Set item = doc.GetFirstItem(&quot;Body&quot;)
			If item.Type = 1 Then
				Set rtItem = doc.GetFirstItem(&quot;Body&quot;)
				plainText = rtItem.GetUnformattedText( )
				vTmp = Split(plainText, Chr$(10))
				Msgbox Str(Ubound(vTmp)) + &quot; strings were found in Body&quot;
			End If
		End If
	End If
End Sub

Best regards]]></description>
		<content:encoded><![CDATA[<p>I have created a memo with this agent:<br />
Sub Initialize<br />
	Dim s As New NotesSession<br />
	Dim db As NotesDatabase<br />
	Dim doc As NotesDocument<br />
	Dim rtItem As NotesRichTextItem<br />
	Dim i%<br />
	Set doc = s.CurrentDatabase.CreateDocument<br />
	doc.Subject = &#8220;100 Lines in Body&#8221;<br />
	doc.SendTo = s.UserName<br />
	Doc.Form = &#8220;Memo&#8221;<br />
	Set rtItem = doc.CreateRichTextItem(&#8220;Body&#8221;)<br />
	For i = 0 To 99<br />
		Call rtItem.AddNewline(1, True)<br />
		Call rtItem.AppendText(Str(i) + &#8221; line in Body is here yxdvyxcvyxcv yxcv yxcv yxcv yx cvyx cv&#8221;)<br />
	Next<br />
	Call doc.Save(True, False)<br />
	Call doc.Send(False)<br />
End Sub</p>
<p>Then I could count the number of lines in the body field of this memo with the following agent:</p>
<p>Sub Initialize<br />
	Dim s As New NotesSession<br />
	Dim doc As NotesDocument<br />
	Dim rtItem As NotesRichTextItem<br />
	Dim item As Variant<br />
	Dim plainText$, vTmp</p>
<p>	Set doc = s.CurrentDatabase.UnprocessedDocuments.GetFirstDocument<br />
	If Not doc Is Nothing Then<br />
		If doc.HasItem(&#8220;Body&#8221;) Then<br />
			Set item = doc.GetFirstItem(&#8220;Body&#8221;)<br />
			If item.Type = 1 Then<br />
				Set rtItem = doc.GetFirstItem(&#8220;Body&#8221;)<br />
				plainText = rtItem.GetUnformattedText( )<br />
				vTmp = Split(plainText, Chr$(10))<br />
				Msgbox Str(Ubound(vTmp)) + &#8221; strings were found in Body&#8221;<br />
			End If<br />
		End If<br />
	End If<br />
End Sub</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abushahd</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-get-no-of-items-appended-into-rich-text-field/#comment-106742</link>
		<dc:creator>abushahd</dc:creator>
		<pubDate>Sun, 15 Apr 2012 11:05:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-106742</guid>
		<description><![CDATA[Hi there ,,

The only thing I can mention over here is Lotus Limits 
http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.notes85.help.doc%2Ffram_limits_of_notes_r.html

Best Wishes]]></description>
		<content:encoded><![CDATA[<p>Hi there ,,</p>
<p>The only thing I can mention over here is Lotus Limits<br />
<a href="http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.notes85.help.doc%2Ffram_limits_of_notes_r.html" rel="nofollow">http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.notes85.help.doc%2Ffram_limits_of_notes_r.html</a></p>
<p>Best Wishes</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.010 seconds using memcached
Object Caching 283/284 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 00:13:49 -->