By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,010 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

Instantiate object with name stored in variable

P: n/a
I am getting the value of an object to be instantiated from the database so
all I have is the name of it stored in a string variable.

How do I instaintiate the object using the variable?
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"whornak" <wh*****@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
I am getting the value of an object to be instantiated from the database so
all I have is the name of it stored in a string variable.

How do I instaintiate the object using the variable?


See the System.Activator.CreateInstance() function.

http://msdn.microsoft.com/library/de...tancetopic.asp

-- Alan
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.