March 11th, 2003, 07:34 AM
wrong number of arguments or invalid property assignment
I'm trying to go through a UDT array (code below) but get a "wrong number of arguments or invalid property assignment" error at the bolded bit (Course.Participents is a Get Property that returns an array):
Dim l As Long
For l = 0 To UBound(Course.Participents)
help would be appreciated
March 11th, 2003, 08:01 AM
Are you sure that Course.Participents(l).ipFullName is returning the values you think it is?
Try putting a breakpoint on the loop and use debug.print to echo some of the values.
If one of the values is null then it would cause your error.
March 11th, 2003, 08:44 AM
the problem is that the execution doesn't get even into the sub - the compiler throws the error (which gets thrown again if I try to check values in the immediate window).
I've checked (using IsArray) and the property does return an array.