Hi Sandeep,

This is from the IB6 Developer's Guide. Please excuse the (lack of)
indentation. I must brush up on how to cut and paste neatly from a pdf file.

HTH,
Craig.

Displaying information for all users
To view all users, use the DisplayUsers method. DisplayUsers displays the user
information contained in the TUserInfo array. The following code snippet
displays all
users in a memo window.
try
DisplayUsers;
for I :=0 to UserInfoCount -1 do
begin
with UserInfo[i] do
begin
Memo1.Lines.Add('User Name : ' + UserName);
Memo1.Lines.Add('Name:' +FirstName +' ' +MiddleName +
' ' +LastName);
Memo1.Lines.Add('UID:' +IntToStr(UserId));
Memo1.Lines.Add('GID:' +IntToStr(GroupId));
Memo1.Lines.Add('-----------------------------------');
end;
end;
finally



Sandeep wrote:

> How do I get the number of users connected to an interbase
> database.
>
> Sandeep
>
> Software Developer
> CFL
> [EMAIL PROTECTED]
> http://www.cfl.co.nz
>
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

Reply via email to