|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
wrong number of arguments or invalid property assignment
Hi,
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) lsParticipents.AddItem Course.Participents(l).ipFullName Next l help would be appreciated |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > wrong number of arguments or invalid property assignment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|