function UserByName(const UserName: string): TScUser;
Description
Call UserByName to determine if a specified user is referenced in the Users list. UserName is the name of the user for which to search. If UserByName finds a user with a matching name, it returns the TScUser object for the specified user. Otherwise it raises an exception.
Note:
UserByName differs from the FindUser method only when the named user is not in the list. When the user is not found, FindUser returns nil, while UserByName raises an exception.
See also