Hallo Thomas,
probier's mit UDT(user defined types, zB:
In einem Modul:
Public Type MyUDT_TYPE
pt(10) As Double
strText(9) As String
iNums(100) As Integer
End Type
In einer Routine:
Private Sub Form_Load()
Dim n As Integer
Dim m As Integer
Dim arrUDT(5) As MyUDT_TYPE
With arrUDT(0)
For n = 0 To 4
.iNums(n) = n
.strText(n) = Format(n, "P000")
.pt(n) = 1.2345 * n
Next
End With
End Sub
UDTs lassen sich auch schachteln, zB:
Public Type POINT_TYPE
x As Double
y As Double
z As Double
End Type
Public Type MyUDT_TYPE
pt(10) As POINT_TYPE
strText(9) As String
iNums(100) As Integer
End Type
Tschau,
Joe
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP