Call Let/Get Prop using string variable for name 
Author Message
 Call Let/Get Prop using string variable for name

I need to call a Let or Get property using a string variable rather than the
property's actual name because I'm using a generic class module as a
go-between other class modules.  for example,

clsA needs to get a value from clsB, but for reasons, clsA and clsB will be
communicating via a generic class module called clsX.  clsA will pass a
number of parameters and intructions of things to do into clsX and then pass
clsX into clsB.  one of the string parameters will be the name of the Get
property we want to retrieve a value from like: "Co_Type"

This is how I'm trying to make it work.

strName = "Co_Type"
'Get Prop in clsB
Public Property Get Co_Type() as String
    Co_Type = udtProps.Co_Type
End Property
clsX.Test = clsB(strName)  'instead of clsB.Co_Type

Somehow I want to call the Property Co_Type by using strName

Any ideas???


George Padvorac

Tue, 28 Aug 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Call Let/Get Prop using string variable for name

2. Call a proc using a string variable for the proc name

3. Naming convention for seriescollection(arg).name using a string variable

4. Calling function or sub with variable array or string names

5. how do i call a function by using the function name as a string of characters

6. calling a contol on a form using a string for the form name

7. Help with using names and variables in a function call

8. Calling a procedure using a variable name

9. Call Function using Func Name stored in variable

10. Calling a sub procedure whose name is in a variable: call me.ProcToRun

Powered by phpBB® Forum Software © phpBB Group