[Gambas-user] System.User question

Sebastian Kulesz sebikul at ...626...
Thu Jul 26 22:35:26 CEST 2012


"Print System.User.Name" should do. To access a property of this
virtual class you can do:
Print System.User.[PROPERTY]


On Thu, Jul 26, 2012 at 5:30 PM, rocko <sunblaster5 at ...626...> wrote:
> 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 at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list