[Gambas-user] System.User question
Tobias Boege
tobiasboege01 at ...1601...
Thu Jul 26 21:51:43 CEST 2012
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
More information about the User
mailing list