L
leaderionel
Hi,
I'd like to program with classes in Access.
1) I have a front-end (mdb), with a form which has a button and a text
box
2) Here I have a reference to a library (mda) with a class (Class1)
and a module (Module1) with a function.
The Class1 class is:
Option Compare Database
Option Explicit
Private mAstring As String
Public Property Get Astring() As String
Astring = mAstring
End Property
Public Property Let Astring(value As String)
mAstring = UCase(mAstring)
End Property
The function is:
Public Function NewClass() As Class1
Set NewClass = New Class1
End Function
3) Now, let's go back to the front-end, and let's write something with
lower cases.
4) Click-ing the button, I'd like to use the class to have back the
string in uppercase.
How to do that?
Thank you,
Ionel
I'd like to program with classes in Access.
1) I have a front-end (mdb), with a form which has a button and a text
box
2) Here I have a reference to a library (mda) with a class (Class1)
and a module (Module1) with a function.
The Class1 class is:
Option Compare Database
Option Explicit
Private mAstring As String
Public Property Get Astring() As String
Astring = mAstring
End Property
Public Property Let Astring(value As String)
mAstring = UCase(mAstring)
End Property
The function is:
Public Function NewClass() As Class1
Set NewClass = New Class1
End Function
3) Now, let's go back to the front-end, and let's write something with
lower cases.
4) Click-ing the button, I'd like to use the class to have back the
string in uppercase.
How to do that?
Thank you,
Ionel