Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#23 Problems with udt and ParamArray

open
nobody
None
5
2004-07-07
2004-07-07
Anonymous
No

There seem to be problems With an array within a user
defined type. Also I've had problems with a ParamArray
within a function. VBDOX is generating Errors by using
these arrays.

User defined Type:
'==========================================
=====================================
' Name: Type CallStackItemType
' ProjectName As String - Name des Projekts der zu
überwachenden Prozedur, Funktion oder Eigenschaft.
' ClassName As String - Name der Klasse oder des
Moduls der Methode oder Eigenschaft.
' ProcedureName As String - Name der Prozedur,
Funktion oder Eigenschaft.
' Comments() As String - Optionale Kommentare oder
Variablenwerte (als Array).
' Output:
' Purpose: Datentyp des CallStacks.
' Remarks: keine
' Author: XXX
' Version: 1.0 (07.07.2004)
'==========================================
=====================================
Public Type CallStackItemType
ProjectName As String
ClassName As String
ProcedureName As String
Comments() As String
End Type

ParamArray:
'==========================================
=====================================
' Name: Push
' Input:
' ByRef ProjectName As String - Name des Projekts.
' ByRef ClassName As String - Name der Klasse, Form
oder des Moduls.
' ByRef ProcedureName As String - Name der Prozedur,
Funktion oder Eigenschaft.
' ByRef ParamArray Comments() As Variant - Optionale
Kommentare oder Variablenwerte (als ParamArray).
' Output:
' Purpose: Fügt dem CallStack Informationen über die
aktuelle Prozedur hinzu.
' Remarks: keine
' Author: xxx
' Version: 1.0 (07.07.2004)
'==========================================
=====================================
Public Sub Push( _
ByRef ProjectName As String, _
ByRef ClassName As String, _
ByRef ProcedureName As String, _
ParamArray Comments() As Variant _
)
End Sub

Discussion