$Userid: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 8: Line 8:
===Example===
===Example===
<p class="code">BEGIN
<p class="code">BEGIN
SET HEADER 1 'MONTHLY SALES REPORT' -
SET HEADER 1 'MONTHLY SALES REPORT' AT COLUMN 10  
    AT COLUMN 10
SET HEADER 2
SET HEADER 2
SET HEADER 3 'PREPARED BY: ' AT COLUMN 10 -
SET HEADER 3 'PREPARED BY: ' AT COLUMN 10 WITH $USERID  
    WITH $USERID
       .
       .
       .
       .

Revision as of 20:05, 14 April 2014

The $USERID function returns a variable-length character string equal to the user ID under which the user is logged into Model 204. If the login feature is not in use, $USERID returns the string NO USERID.

The USERID parameter returns the same value as the $USERID function.

The $USERID function takes no arguments.

Example

BEGIN SET HEADER 1 'MONTHLY SALES REPORT' AT COLUMN 10 SET HEADER 2 SET HEADER 3 'PREPARED BY: ' AT COLUMN 10 WITH $USERID . . .