General information
Title:
Declaring an object based on variable value
Environment versions
Network:
Windows 2003 Server
in VFP, we can do like this :
lcTEXT = "TEXTBOX"
loOBJ = createobject(lcTEXT)
in ASP.NET, I want to do the same
Dim lcTEXT As String = "TEXTBOX"
Dim loOBJ As New (lcTEXT)
I know this won't work. Is there any other way to do this?
Thanks..
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only