Function to obtain numeric identifier (UID) of multi-user text conference by its name.
function mGetConfUIDByName(sConfName: string): integer;
Parameter |
Type |
Value |
---|---|---|
sConfName |
string |
conference name. |
Conference numeric identifier, If there is no such conference, the function returns "-1".
const
CONFNAME = 'main';
var
iUID: integer;
s: string;
begin
iUID := mGetConfUIDByName(CONFNAME);
if iUID = -1 then mLogScript('Conference "' + CONFNAME +'" does not exist', '')
else mLogScript('Conference "' + CONFNAME +'" has UID ' + IntToStr(iUID), '');
end.
[19:43:20] (Log "mGetConfUIDByName"): Conference "main" has UID 1
[19:43:20] (Run "mGetConfUIDByName"): Script operation time: 3 ms
[19:43:20] (Run "mGetConfUIDByName"): Script done successfully.