function FindUser(const UserName: string): TScUser;
Description
Call FindUser to determine if a specified user is referenced in the Users list. UserName is the name of the user for which to search. If FindUser finds a user with a matching name, it returns the TScUser object for the specified user. Otherwise it returns nil.
Note:
FindUser differs from the UserByName 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