Determining a User's Name
Phil Davis
revdev at pdslabs.net
Sat Apr 7 03:39:40 EDT 2007
Joe -
Would environment variables work?
- on Mac OS X there's $USER
- on Win XP there's $USERNAME
So you could do this:
function currentUser
switch the platform
case "MacOS"
return $USER
break
case "Win32"
return $USERNAME
break
end switch
end currentUser
Or there might be a different variable you want to use. Check out 'globalNames'
in the docs.
HTH -
Phil Davis
Joe Lewis Wilkins wrote:
> Hi All,
>
> Anyway to determine the computer user's name with RR; both Mac and
> Windows? I want to personalize a dialog query.
>
> TIA,
>
> Joe Wilkins
More information about the use-livecode
mailing list