Home All Groups Group Topic Archive Search About
Author
24 May 2006 4:00 PM
news.microsoft.com
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

Author
24 May 2006 4:21 PM
Cor Ligthert [MVP]
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
>
>
Author
24 May 2006 4:50 PM
news.microsoft.com
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
> >
> >
>
>
Author
24 May 2006 4:59 PM
Robin Mark Tucker
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
>> >
>> >
>>
>>
>
>
Author
24 May 2006 5:51 PM
news.microsoft.com
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
> >> >
> >> >
> >>
> >>
> >
> >
>
>