Question

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.

Was it helpful?

Solution

You have to write

Set test = Day(curDate.DateOnly)

because DateOnly is a property of curDate.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top