Examples: Login_GetInfo()


The following example uses this function in a script attached to a connection status button. If the function is completed successfully, the current user ID and data source values are displayed to the user.

local string data_source, user_ID;
local long session_ID;
local integer status;

status = Login_GetInfo(data_source, user_ID, session_ID);
if status = STATUS_SUCCESS then
	warning "User" + user_ID + "is logged into data source" + data_source + ".";
elseif status = STATUS_NOT_LOGGED_IN then
	warning "Client is currently not logged in.";
else
	warning "An unknown error has occurred.";
end if;


Documentation Feedback