u50bb

u50bb


u4209 Index Level u5117
Syntax result = OCONV( '{[a|u|p]}{%pib}', 'u50bb' )
Category BASIC
Type User Exit
Description returns the port number, user-id and current account for this process, just like the TCL "who" command.

On releases 7.0 or higher (or an older release with a suitable patch), a specific portion of the who information may be requested.  If the conversion value begins with the character "a", "u", or "p", then only the account, user, or pib will be returned respectively.

The data for another pib may be obtained by putting a "%" character followed by the pib number in the conversion value.
Options
See Also user exits, FlashBASIC u60bb who u31ad u000e
Example a = oconv('', 'u50bb')
On R83 implementations, "a" contains '0 SYSPROG' if the current process was port 0 in SYSPROG.

In D3, "a" contains "0 bob dm" if the current user-id is "bob" and the current account name is "dm".

a = oconv('a','u50bb')
"a" contains the current account.

a = oconv('u%3','u50bb')
"a" contains the user ID for pib 3.
Warnings The user-id is NOT returned on R83 releases.
Compatibility D3 7.0 AP OA/RT R83 3.1 R83 2.2
u4209 Index Level u5117