|
|
 |
FN-FORUM: Access XP Class Modules
date posted 8th March 2006 20:21
Hi all,
I'm not sure if this can be done but I'll ask anyway:
I want to reference Property's in a Class Module by calling them using a
variable.
Eg:
Class Module code
Property Get Name() As String
Name = mstrName
End Property
Module Code
Public Sub GetData()
dim obj As clsClassModule
dim str As String
str = "Name"
Debug.Print obj(str)
End Sub
This code wont work os you cant have obj(str), so is there a way of
referencing properties like this?
Nic
|
 |
|