User Tools

Site Tools


finding_20the_20current_20user_20name

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

finding_20the_20current_20user_20name [2018/03/31 13:19]
127.0.0.1 external edit
finding_20the_20current_20user_20name [2018/04/15 10:21] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Finding the current user name===== =====Finding the current user name=====
  
-//by Richard Russell, October 2010//\\ \\  To find the user name for the current thread use this function:\\ +//by Richard Russell, October 2010//\\ \\  To find the user name for the current thread use this function: 
 + 
 +<code bb4w>
         DEF FNusername         DEF FNusername
         LOCAL name%, size%         LOCAL name%, size%
Line 8: Line 10:
         SYS "​GetUserName",​ name%, ^size%         SYS "​GetUserName",​ name%, ^size%
         = $$name%         = $$name%
-The function can be called in the following context:\\ +</​code>​ 
 + 
 +The function can be called in the following context: 
 + 
 +<code bb4w>
         PRINT "The user name is " FNusername         PRINT "The user name is " FNusername
 +</​code>​
finding_20the_20current_20user_20name.txt · Last modified: 2018/04/15 10:21 by richardrussell