christheprogrammer
Programmer
Hi all,
I want to return an array of my Line_Segments from a function with the types as follows:
Private Type Coord
e As Double 'Easting
n As Double 'Northing
End Type
Private Type Line_Segment
start As Coord
end As Coord
mid As Coord
length As Double
End Type
Function get_line_segments() as Variant
'Build array here
End Function
Problem: Apparently I cannot return a Variant which is an array of user defined types!!! So how do I do this?
I appreciate the help
Thanks
Chris
Later
I want to return an array of my Line_Segments from a function with the types as follows:
Private Type Coord
e As Double 'Easting
n As Double 'Northing
End Type
Private Type Line_Segment
start As Coord
end As Coord
mid As Coord
length As Double
End Type
Function get_line_segments() as Variant
'Build array here
End Function
Problem: Apparently I cannot return a Variant which is an array of user defined types!!! So how do I do this?
I appreciate the help
Thanks
Chris
Later