User Tools

Site Tools


This is an old revision of the document!

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 for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information
finding_20the_20current_20user_20name.1522502360.txt.gz · Last modified: 2018/03/31 13:19 by