It returns a virtual object not a string.
I checked the docs on virtual class/objects but still I'm
a bit clueless on how to interact/print them.
On Thu, 2012-07-26 at 21:51 +0200, Tobias Boege wrote:
> On Thu, 26 Jul 2012, rocko wrote:
> > I'm trying to print the user by using 'System.User' but I am
> > getting a 'mismatch' error.
> >
> > CODE:
> > iusr = System.User
> > Print iusr
> >
> > This also happens if I use a listbox to list the User.
> > In a gui app.
> >
> > The System.User is a class right? so do have to convert it to string to
> > print?
> > Others like System.Host work fine, which I assume is also a class.
> > Not sure why i'm getting this error why would 'Host' work but not
> > 'User'??
> >
> > Using Gambas 3 on Ubuntu 10.10
> >
>
> System.User is in fact a class while System.Host is not. Have a look at the
> documentation:
> http://www.gambasdoc.org/help/comp/gb/system?v3
> You can descend into the System.User class from there.
>
> Regards,
> Tobi
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user