|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Object from variableHi,
I am sorry if it has been discuss before I searched and could not find. I want to create object from variable. I have name of Crystal Report in Table and I want to create object from variable any idea or clue Thanks Sohail Hi,
Strange question in my eyes, however Dim a as new object a = "Whatever you want and whatever value you want" I don't know if this is what you were after, Cor Show quoteHide quote "news.microsoft.com" <shk***@peo.on.ca> schreef in bericht news:OGT5ms0fGHA.4892@TK2MSFTNGP02.phx.gbl... > Hi, > > I am sorry if it has been discuss before I searched and could not find. > > I want to create object from variable. I have name of Crystal Report in > Table and I want to create object from variable > any idea or clue > > Thanks > > Sohail > > Thanks for your reply, I think i was not clear in my problem.
normally it is dim rpt as rptBudget = new rptBudget rpt Budget is a Crystal Report I want to do somehting like this xyz = "rptBudget" how can i create object of xyz Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:#JxMs30fGHA.1272@TK2MSFTNGP03.phx.gbl... > Hi, > > Strange question in my eyes, however > > Dim a as new object > a = "Whatever you want and whatever value you want" > > I don't know if this is what you were after, > > Cor > > "news.microsoft.com" <shk***@peo.on.ca> schreef in bericht > news:OGT5ms0fGHA.4892@TK2MSFTNGP02.phx.gbl... > > Hi, > > > > I am sorry if it has been discuss before I searched and could not find. > > > > I want to create object from variable. I have name of Crystal Report in > > Table and I want to create object from variable > > any idea or clue > > > > Thanks > > > > Sohail > > > > > > Use Activator.CreateInstance. For example:
theObject = Activator.CreateInstance(Type.GetTypeFromProgID("MyNamespace.MyType")) Show quoteHide quote "news.microsoft.com" <shk***@peo.on.ca> wrote in message news:%23zc2kI1fGHA.2188@TK2MSFTNGP05.phx.gbl... > Thanks for your reply, I think i was not clear in my problem. > > normally it is > dim rpt as rptBudget = new rptBudget > > rpt Budget is a Crystal Report > > I want to do somehting like this > xyz = "rptBudget" > how can i create object of xyz > > > > > > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message > news:#JxMs30fGHA.1272@TK2MSFTNGP03.phx.gbl... >> Hi, >> >> Strange question in my eyes, however >> >> Dim a as new object >> a = "Whatever you want and whatever value you want" >> >> I don't know if this is what you were after, >> >> Cor >> >> "news.microsoft.com" <shk***@peo.on.ca> schreef in bericht >> news:OGT5ms0fGHA.4892@TK2MSFTNGP02.phx.gbl... >> > Hi, >> > >> > I am sorry if it has been discuss before I searched and could not find. >> > >> > I want to create object from variable. I have name of Crystal Report in >> > Table and I want to create object from variable >> > any idea or clue >> > >> > Thanks >> > >> > Sohail >> > >> > >> >> > > Thanks for all of you
I found very good example here http://www.geocities.com/Jeff_Louie/OOP/oop20.htm Sohail Show quoteHide quote "Robin Mark Tucker" <robintuckerhome@removehotmail.comremove> wrote in message news:e523e5$ns4$1$8300dec7@news.demon.co.uk... > > Use Activator.CreateInstance. For example: > > > > theObject = > Activator.CreateInstance(Type.GetTypeFromProgID("MyNamespace.MyType")) > > > > > "news.microsoft.com" <shk***@peo.on.ca> wrote in message > news:%23zc2kI1fGHA.2188@TK2MSFTNGP05.phx.gbl... > > Thanks for your reply, I think i was not clear in my problem. > > > > normally it is > > dim rpt as rptBudget = new rptBudget > > > > rpt Budget is a Crystal Report > > > > I want to do somehting like this > > xyz = "rptBudget" > > how can i create object of xyz > > > > > > > > > > > > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message > > news:#JxMs30fGHA.1272@TK2MSFTNGP03.phx.gbl... > >> Hi, > >> > >> Strange question in my eyes, however > >> > >> Dim a as new object > >> a = "Whatever you want and whatever value you want" > >> > >> I don't know if this is what you were after, > >> > >> Cor > >> > >> "news.microsoft.com" <shk***@peo.on.ca> schreef in bericht > >> news:OGT5ms0fGHA.4892@TK2MSFTNGP02.phx.gbl... > >> > Hi, > >> > > >> > I am sorry if it has been discuss before I searched and could not find. > >> > > >> > I want to create object from variable. I have name of Crystal Report in > >> > Table and I want to create object from variable > >> > any idea or clue > >> > > >> > Thanks > >> > > >> > Sohail > >> > > >> > > >> > >> > > > > > >
Xcopy Install of VB Classic Application
How to Use a Screen Saver app within My Application? Project won't run from network drive. scope of command and garbage collection Applying word styles using VB .Net using up too much memory and is slow Question about a conversion project Comparing Two DataTables SET ARITHABORT ON: Why (not)? Web Service How to find all CD/DVD & CD/DVD-RW drives? |
|||||||||||||||||||||||