[Gambas-user] Hot to get Class Name of Object

Randall Morgan rmorgan62 at ...626...
Wed Sep 17 04:48:48 CEST 2014


Thanks Tobi

On Tue, Sep 16, 2014 at 7:29 PM, Tobias Boege <taboege at ...626...> wrote:

> On Tue, 16 Sep 2014, Randall Morgan wrote:
> > Hi All,
> >
> > This may be answered else where but I was unable to locate an answer
> using
> > google.
> >
> > I need to be able to query an object for it's class name. I have an
> object
> > that gets passed an owner object then, the owner is changed to a new
> object
> > of a different class (think fire balls being tossed a enemy subjects). I
> > need to know if the object is owned by the player or the enemy. This way
> I
> > can change it's state appropriately.
> >
> > Thanks in advance for the helpful replies.
> >
>
> Object.Class(yourObject).Name.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?



More information about the User mailing list