User Tools

Site Tools


finding_20the_20current_20user_20name

Finding the current user name

by Richard Russell, October 2010

To find the user name for the current thread use this function:

        DEF FNusername
        LOCAL name%, size%
        size% = 255
        DIM name% LOCAL size%
        SYS "GetUserName", name%, ^size%
        = $$name%

The function can be called in the following context:

        PRINT "The user name is " FNusername
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
finding_20the_20current_20user_20name.txt · Last modified: 2018/04/15 11:21 by richardrussell