Hi Ken, Am 26.03.2012 um 21:32 schrieb Ken Ray:
>>> You can get the name of the user that is logged in by checking the >>> environment variables $USERNAME (on Windows) and $USER (on Mac). As to the >>> user's permission level, this is what I use (watch line wraps): >>> function stsIsAdminUser pName, pComputer >> what is "pComputer", resp. how do I get this value? > > Whoops! Sorry, you can pass the environment variable $COMPUTERNAME under > Windows (it's not needed for Mac) … I call the function like this on Windows: > put stsIsAdminUser($USERNAME,$COMPUTERNAME) into tResult Ah, OK, thanks! :-) > Ken Ray > Sons of Thunder Software, Inc. > Email: k...@sonsothunder.com > Web Site: http://www.sonsothunder.com/ Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode