>> 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


Ken Ray
Sons of Thunder Software, Inc.
Email: [email protected]
Web Site: http://www.sonsothunder.com/  

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to