Another example to the problem
Thought that first one was somewhat blurry so I wrote another example:
I have the following code in a module:
Code:
REM The UDT:
Type Temp
A as integer
B as integer
End Type
Dim TempArray(1 to 10) of Temp
REM: Now the following code:
Sub Main()
Dim I as Integer
For I = 1 to 10
TempArray(I).A=I
Next I
REM Now I want to print the array as a string with delimiters using the VB6 Join function:
Debug.Print Join(TempArray().A,",")
Now what I expect it to print in the debug window is: 1,2,3,4,5,6,7,8,9,10. However all I get is a "Invalid qualifier" Error. Can you tell me what's wrong and how I can do it right?