This is a multipart message in MIME format.
--=_alternative 001AD2C188256F2A_=
Content-Type: text/plain; charset="US-ASCII"
Straight from the Help files....you're going to need to declare the items
as NotesDateTime items to do the comparison. The simplest way is to
extract them from an already declared NotesItem.
Dim item As NotesItem
Dim dateTime As NotesDateTime
Set item = doc.GetFirstItem( "DateComposed" )
Set dateTime = item.DateTimeValue
Hope this helps,
Don
<><><><><><><><><><><>
Don Shennum
Technical Business Analyst
Koret of California, Inc.
505 14th Street
Oakland, CA 94612
(510) 622-7383
***@koretsf.com
http://www.koretsf.com
<><><><><><><><><><><>
***@averittexpress.com
Sent by: lnotes-***@ozzie.notesnic.net
10/08/2004 01:28 PM
Please respond to
lnotes-***@ozzie.notesnic.net
To
Multiple recipients of list LNOTES-L <lnotes-***@ozzie.notesnic.net>
cc
Subject
Date/Time comparison in LotusScript
Since this seems to be LotusScript day.
I'm working on a project and I need to do a Do While loop until a
particular date/time equals a second date time. How do I set up a
comparison that in formula would be :
@If(BeginTime = EndingTime;Stop;Keep Going)
Every time I try a comparison in LS, I'm getting a type mismatch: and
that's saving not running the script. I can't make claims to being a
scripter, and time makes it worse.
Brian
--=_alternative 001AD2C188256F2A_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Straight from the Help files....you're
going to need to declare the items as NotesDateTime items to do the comparison.
The simplest way is to extract them from an already declared NotesItem.
</font>
<br>
<br><font size=1><tt>Dim item As NotesItem<br>
Dim dateTime As NotesDateTime<br>
Set item = doc.GetFirstItem( "DateComposed" )<br>
Set dateTime = item.DateTimeValue</tt></font>
<p>
<p>
<p><font size=1><tt>Hope this helps,</tt></font>
<p><font size=1><tt>Don</tt></font>
<p><font size=2 face="sans-serif"><br>
<><><><><><><><><><><><br>
Don Shennum<br>
Technical Business Analyst<br>
Koret of California, Inc.<br>
505 14th Street<br>
Oakland, CA 94612<br>
(510) 622-7383<br>
***@koretsf.com<br>
http://www.koretsf.com<br>
<><><><><><><><><><><><br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>***@averittexpress.com</b>
</font>
<br><font size=1 face="sans-serif">Sent by: lnotes-***@ozzie.notesnic.net</font>
<p><font size=1 face="sans-serif">10/08/2004 01:28 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
lnotes-***@ozzie.notesnic.net</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Multiple recipients of list LNOTES-L
<lnotes-***@ozzie.notesnic.net></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Date/Time comparison in LotusScript</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Since this seems to be LotusScript day.<br>
<br>
I'm working on a project and I need to do a Do While loop until a <br>
particular date/time equals a second date time. How do I set up a <br>
comparison that in formula would be :<br>
<br>
@If(BeginTime = EndingTime;Stop;Keep Going)<br>
<br>
Every time I try a comparison in LS, I'm getting a type mismatch: and <br>
that's saving not running the script. I can't make claims to being a <br>
scripter, and time makes it worse.<br>
<br>
Brian<br>
</tt></font>
<br>
--=_alternative 001AD2C188256F2A_=--