UtilsLib Xojo plugin

LocaleInfo.UserName Method

To get the currently logged in user use the UserName function.

shared UserName(
   useShortName as Boolean) as String

Parameters

useShortName
This parameter only has affect when running on OS X, Linux or Windows 2000 or later.
Classic MacOS and older Windows systems will not care if you put true or false here.

If you put true when running OS X then you will get the full name of the user. If you put false when running on OS X then you will get the short user name.

Returns

String

Remarks

See Also

LocaleInfo Class