[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_WHOAMI()
Return a user name
------------------------------------------------------------------------------
Syntax
fn_whoami( [<nConnection>] ) -> cUserName
Arguments
<nConnection>. Optional, defaults to current connection
number. If supplied, fn_whoami() will return the user
logged in at logical connection number <nConnection>.
<nConnection> is numeric and can be anything from 1 to
250.
Returns
The name of the user, as a character string. It will be
all uppercase and will be no longer than 48 characters.
Description
This is a high-level wrapper around fn_conninf() that just
returns the username -- for people who don't want to go
through the trouble of learning the oh-so-complicated
fn_conninf() syntax...
Examples
qout( "Current user is: " + fn_whoami() )
Source: N:\SRC\CONNWS\WHOAMI.PRG
Author: Glenn Scott
See Also:
fn_conninf()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson