I've hardly written any vb in the last year or so, and I've forgotten something....
Can you pass parameters to the default constructor for a class?
E.G.:
The class constructor (for class cTrain):
Code:
Private Sub Class_Initialize(sFlowTag As String, sFieldTag As String)
'Do some stuff
End Sub
Then declare an instance:
Code:
Dim Train1 As cTrain
Sub test()
Set Train1 = New cTrain("AFIC-0160/A","AZSC-0111")
End Sub
IIRC, don't I have to set a new instance of the class, THEN call some other initialisation routine?
E.g.:
Code:
Dim Train1 As cTrain
Sub test()
Set Train1 = New cTrain
Train1.SetTags("AFIC-0160/A","AZSC-0111")
End Sub