hi,
is it possible in
VB.NET variable contains variable.
sorry for my english, here i try to give u an example.
i have 2 classes called clsMsSQL and clsOracle. i
wanna make an object from one of it within a function.
function makeObject(byval strClass as string) as
object
' the following strClass should represent
' either "clsMsSQL" or "clsOracle"
dim objDB as new strClass
return objDB
end function
this function is called like this...
dim objDB as object = makeObject("clsMsSQL")
how should i write the function?
i can be done in PHP but i guess there must be a way
to do it in
VB.NET as well.
thanx in advance
_____________________
Dominus Tecum