CURUSER() :INTEGER

Determine what users information, if any, is available via the user variables. It takes no arguments and returns one of the following values:

  NO_USER (-1) - User variables are currently undefined  
  CUR_USER (0) - User variables are for the current user  
  Other        - The record number of an alternate user for whom user  variables are defined