passing an argument into the class initialisation function
Posted on 2003-11-20
I have create a class module ("style")
in the class I have used the initialise function, I want this function to accept a 'string' as an argument.
ie private sub initialize(textBlock as string)
However when I try to create this class, I do not know how to pass the string to the class, I would have thought it would be as follows:
dim tS as style
set tS = new style(myString)
However this produces an error.
Could someone please enlighten me as to how this works.