G
Guest
Hello,
I have built a very small and easy class module for a questionnaire we cal
"Abs".
I have called the class Abs. Here is the
I have built a very small and easy class module for a questionnaire we cal
"Abs".
I have called the class Abs. Here is the
Code:
(there is something more but
similar):
[Option Compare Database
Private question As String
Private prequestion As String
Public Property Get avviso() As String
'ricevo l'avviso che precede la domanda
avviso = prequestion
End Property
Public Property Let avviso(i As String)
'stabilisco l'avviso che precede la domanda
prequestion = carica_caption(i)
End Property]
I'm having trouble instanciating it. i mean: I cannot instanciate it at all!!
Once I digit ---> [dim questionnaire as Abs] I get this error message :
----
compile error:
Expected: New or type Name
-------
Even if i digit ---> [dim questionnaire as New Abs] I get the msg:
compile error:
Expected: identifier
Why?
I can see my Abs object in the Object Browser but cannot instanciate it...
Ok, this is my first experience with custom classes after lots of reading. I
was expecting troubles... but not so soon!!!!!!!!!!!!!!