<?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: Evaluate, the bridge between Lotus Script and @Formula</title>
	<atom:link href="http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/</link>
	<description>My Passion about Lotus Notes, Domino, Email and IT Related</description>
	<lastBuildDate>Sun, 22 Jan 2012 15:31:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: bfebrian</title>
		<link>http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/comment-page-1/#comment-1288</link>
		<dc:creator>bfebrian</dc:creator>
		<pubDate>Thu, 03 Nov 2011 02:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/#comment-1288</guid>
		<description>@Sheryl Banks: 
because the formula can&#039;t read the variable from the lotus script, so we need to pass the variable via notes document.</description>
		<content:encoded><![CDATA[<p>@Sheryl Banks:<br />
because the formula can&#8217;t read the variable from the lotus script, so we need to pass the variable via notes document.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bfebrian</title>
		<link>http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/comment-page-1/#comment-1287</link>
		<dc:creator>bfebrian</dc:creator>
		<pubDate>Thu, 03 Nov 2011 02:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/#comment-1287</guid>
		<description>@Sheryl Banks: 
The fails one:
Dim intLength As Integer
intLength=Cint(strLength)
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)


The workaround:
Dim intLength As Integer
intLength=Cint(strLength)
doc.intLength=intLength &lt;-- he added the variable inside the doc
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)</description>
		<content:encoded><![CDATA[<p>@Sheryl Banks:<br />
The fails one:<br />
Dim intLength As Integer<br />
intLength=Cint(strLength)<br />
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)</p>
<p>The workaround:<br />
Dim intLength As Integer<br />
intLength=Cint(strLength)<br />
doc.intLength=intLength <&#8211; he added the variable inside the doc<br />
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheryl Banks</title>
		<link>http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/comment-page-1/#comment-1286</link>
		<dc:creator>Sheryl Banks</dc:creator>
		<pubDate>Wed, 02 Nov 2011 18:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/#comment-1286</guid>
		<description>@workaround

Hi, I&#039;m missing the difference between what you said failed and your suggested workaround code. Can you point out it out please?  Thanks</description>
		<content:encoded><![CDATA[<p>@workaround</p>
<p>Hi, I&#8217;m missing the difference between what you said failed and your suggested workaround code. Can you point out it out please?  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: workaround</title>
		<link>http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/comment-page-1/#comment-1141</link>
		<dc:creator>workaround</dc:creator>
		<pubDate>Thu, 20 Jan 2011 17:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/#comment-1141</guid>
		<description>The following fails
Dim Doc As NotesDocument
Set doc = db.CreateDocument
‘ … more code to do something
Dim intLength As Integer
intLength=Cint(strLength)
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)

here’s a workaround..

Dim Doc As NotesDocument
Set doc = db.CreateDocument
‘more code…
Dim intLength As Integer
intLength=Cint(strLength)
doc.intLength=intLength
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)

basically put the variable inside doc and it will work..

This shows how to use a Lotus variable in evaluate and get around the limitation
(please remove previous post)</description>
		<content:encoded><![CDATA[<p>The following fails<br />
Dim Doc As NotesDocument<br />
Set doc = db.CreateDocument<br />
‘ … more code to do something<br />
Dim intLength As Integer<br />
intLength=Cint(strLength)<br />
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)</p>
<p>here’s a workaround..</p>
<p>Dim Doc As NotesDocument<br />
Set doc = db.CreateDocument<br />
‘more code…<br />
Dim intLength As Integer<br />
intLength=Cint(strLength)<br />
doc.intLength=intLength<br />
resnamecheck=Evaluate({@Adjust(@Now;0;0;0;intLength;0;0)},doc)</p>
<p>basically put the variable inside doc and it will work..</p>
<p>This shows how to use a Lotus variable in evaluate and get around the limitation<br />
(please remove previous post)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evaluate, the bridge between Lotus Script and @Formula Domino, Email, Spam and IT Related &#187; Auto Post Script</title>
		<link>http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/comment-page-1/#comment-409</link>
		<dc:creator>Evaluate, the bridge between Lotus Script and @Formula Domino, Email, Spam and IT Related &#187; Auto Post Script</dc:creator>
		<pubDate>Sat, 17 Oct 2009 01:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.indomino.net/blog/2009/10/03/evaluate-the-bridge-between-lotus-script-and-formula/#comment-409</guid>
		<description>[...] In lotus notes programming, I usually use Formula for simple program and Lotus Script for more complex program. I try to avoid many lines of Formula, because it difficult to read and not structured. But, Formula have many method that Lotus Script do not have, like @Implode and @Explode. Even we can write our ownLotus Script function to do that, it just a waste of time and energy. But, we have Evaluate in Lotus Script. Evaluate function is one of many of my favorite functions, because it able to run Formula and than pass the result of that Formula intoLotus Script variable (variant). This is the syntax of Evaluate variant = notesSession.Evaluate( formula$, doc ) We can use Evaluate function to pass the result from any kind of Formula, from simple formula like @UserName to more complex formula like @Implode. Recently, I use Evaluate in my program, to shorten the length of theLotus Script. I need to calculate the difference in days between two date, but only in business days ( so saturday and sunday will not be counted also holidays). Formula already have the function to calculate that, so I don’t need to create another lengthly Lotus Scriptfunction just to calculate that. I use the formula instead, so I need the Evaluate function. varDay=Evaluate(”@BusinessDays(@Date(datFinal);@Date(@Now);1;datPublicHoliday)”,doc) Remember that Evaluate function return value is variant. With Evaluate, Formula and Lotus Script can coexist together. Download Free Article Spinner Thanks. [...]</description>
		<content:encoded><![CDATA[<p>[...] In lotus notes programming, I usually use Formula for simple program and Lotus Script for more complex program. I try to avoid many lines of Formula, because it difficult to read and not structured. But, Formula have many method that Lotus Script do not have, like @Implode and @Explode. Even we can write our ownLotus Script function to do that, it just a waste of time and energy. But, we have Evaluate in Lotus Script. Evaluate function is one of many of my favorite functions, because it able to run Formula and than pass the result of that Formula intoLotus Script variable (variant). This is the syntax of Evaluate variant = notesSession.Evaluate( formula$, doc ) We can use Evaluate function to pass the result from any kind of Formula, from simple formula like @UserName to more complex formula like @Implode. Recently, I use Evaluate in my program, to shorten the length of theLotus Script. I need to calculate the difference in days between two date, but only in business days ( so saturday and sunday will not be counted also holidays). Formula already have the function to calculate that, so I don’t need to create another lengthly Lotus Scriptfunction just to calculate that. I use the formula instead, so I need the Evaluate function. varDay=Evaluate(”@BusinessDays(@Date(datFinal);@Date(@Now);1;datPublicHoliday)”,doc) Remember that Evaluate function return value is variant. With Evaluate, Formula and Lotus Script can coexist together. Download Free Article Spinner Thanks. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

