hatman
Well-known Member
- Joined
- Apr 8, 2005
- Messages
- 2,664
So I have this custom Type:
But when I call the Join Function:
I get the following error:
While the Isarray() function
Returns a True.
So the work around is child's play... yet I'm a little troubled that the original usage doesn't work. Has anyone encountered this, or have some explanation. I assume that it's something to do with the the fact that I have defined an array as a custom type that contains an array, and the interpretter is just getting confused by the recursion...
Code:
Public Type Shape_Export_Data_Ver_1
sedName As String
sedText As String
sedTop As Double
sedLeft As Double
sedWidth As Double
sedHeight As Double
sedShadow_Visible As Boolean
sedShadow_Type As Integer
sedType As Integer
sedConnector_BeginShape As String
sedConnector_EndShape As String
sedConnector_BeginAnchor As Integer
sedConnector_EndAnchor As Integer
sedFont_Color As Integer
sedFill_Color As Integer
sedFont_Size As Integer
sedConnector_Type As Integer
sedGRIPS() As Double
End Type
But when I call the Join Function:
Code:
Dim Dat_Array() As Shape_Export_Data_Ver_1
...
Join(Dat_Array(Cnt).sedGRIPS, "|")
I get the following error:
Runtime Error 5: Invalid Procedure Call or Argument
While the Isarray() function
Code:
IsArray(Dat_Array(Cnt).sedGRIPS)
Returns a True.
So the work around is child's play... yet I'm a little troubled that the original usage doesn't work. Has anyone encountered this, or have some explanation. I assume that it's something to do with the the fact that I have defined an array as a custom type that contains an array, and the interpretter is just getting confused by the recursion...