Reputation: 822
Newbie to LotusScript here, so please be gentle ;)
Why does this code give me the error Unexpected: .; Expected: End-of-statement
?
Dim curDate As New NotesDateTime(Today)
Dim test
Set test = Day(curDate).DateOnly ' <- causes the error
Thanks for your help.
Upvotes: 0
Views: 391
Reputation: 30960
You have to write
Set test = Day(curDate.DateOnly)
because DateOnly
is a property of curDate.
Upvotes: 1