Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: Access XP Class Modules

date posted 8th March 2006 21:32

I'm not sure I follow the detail of what you're asking here.

You're using VB.Net ?

You want to be able to see the value of a property but you don't
necessarily know that the property exists?

If you are using .net you can probably do it using Reflection, but if
you are responsible for the architecture on both sides of the call think
very hard about whether you want to...

-ben

Nicholas Smith wrote:

>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
>
>
>
>



Messages by Day
March 31st 2006
March 30th 2006
March 29th 2006
March 28th 2006
March 27th 2006
March 26th 2006
March 25th 2006
March 24th 2006
March 23rd 2006
March 22nd 2006
March 21st 2006
March 20th 2006
March 19th 2006
March 18th 2006
March 17th 2006
March 16th 2006
March 15th 2006
March 14th 2006
March 13th 2006
March 12th 2006
March 11th 2006
March 10th 2006
March 9th 2006
March 8th 2006
March 7th 2006
March 6th 2006
March 5th 2006
March 4th 2006
March 3rd 2006
March 2nd 2006
March 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000