MyChat Scripts Engine: mIsConfExists
Checking current existence of a text conference with a specified identifier (UID).
Syntax
function mIsConfExists(iUID: integer): boolean;
Parameters and return values
Parameter |
Type |
Value |
iUID |
integer |
conference identifier. |
Function result
"True", if the conference exists, "False" if not.
Example
const
CONFNAMES = 'main,work,Sales,HRDept';
var
iUID: integer;
s, sConfName: string;
begin
s := CONFNAMES;
while length(s) > 0 do begin
sConfName := Fetch(s, ',');
iUID := mGetConfUIDByName(sConfName);
if iUID = -1 then mLogScript('Conference "' +sConfName +'" does not exist', '')
else mLogScript('Conference "' + sConfName +'" has UID ' + IntToStr(iUID), '');
end;
end.
Script work result
[20:03:23] (Log "mIsConfExists"): Conference "main" has UID 1
[20:03:23] (Log "mIsConfExists"): Conference "work" has UID 2
[20:03:23] (Log "mIsConfExists"): Conference "Sales" does not exist
[20:03:23] (Log "mIsConfExists"): Conference "HRDept" does not exist
[20:03:23] (Run "mIsConfExists"): Script operation time: 5 ms
[20:03:23] (Run "mIsConfExists"): Script done successfully.
See also
Created with the Personal Edition of HelpNDoc: Quickly and Easily Convert Your Word Document to an ePub or Kindle eBook