Thanks Gale,
I just had a chance to try this and see that double quotes " also work as in the modified example below:
Code: Select all
VBStart
VBEND
Let>Today=09/01/2009
Let>FMQfiledate=08/31/2009
VBEval>DateDiff("d","%Today%","%FMQfiledate%"),Daydiff
if>Daydiff=1
messagemodal>Gooddates
Else
messagemodal>%Today% %FMQfiledate% Difference Between Today and FMQfiledate= %Daydiff%
Endif
Yes, I see now this is a syntax requirement specific to the VBScript DateDiff function... and not specific to the MS VBEval> command... however when we use the VBEval> command, we run into things like this... so an example in the Help File showing the syntax would be helpful.
It could mention or show that either "" or ## can be used. It might even reduce support time eaten up by new users working with VBScript date functions... nothing wrong with that.
Gale, the ( and ) characters in that URL are causing the problem with display in your forum post. If you substitute the URL Encoded equivalents, it will display and work OK:
( = %28
) = %29
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Thanks again for your reply... and take care.