When I use the gantt chart, I'm plagued with all kings of errors of that type : "Wrong number of arguments" "invalid property assignment"
Here's an example of my functions :
Function DueDate_EQ_TaskActEnd( duedate,TaskActEnd, projet, task, etape )
If IsNull(DueDate) And (Task = True Or projet = True Or etape = True ) Then
DueDate_EQ_TaskActEnd = TaskActEnd
ElseIf IsNull(TaskActEnd) Then
DueDate_EQ_TaskActEnd = duedate
Else
DueDate_EQ_TaskActEnd = duedate
End If
End Function
Here's what the gantt chart sends to my function parameters
DueDate_EQ_TaskActEnd ( NULL,40242,6666666667, 0, -1, 0 )
Sorry ! My mistake
The bold one is the one sent by the gantt. As you can see, it's not an integer and is interpreted as 2 different parameters, because of the Comma separation. I'm not an expert but it seems to be caused by the "time" details after the date that the gantt chart sends to my script.
How can I use that info in my function without breaking everything ? And why can't my function work with these different format ?
A million thanks to the one able to help !
[EDITED]
Comments