TIBDatabaseInfo.UserNames is not showing the currently logged in users. It only shows one user, myself, as what ever user account I logged in as.
I checked this out with an old copy of FlameRobin. It too has a "Current Users" list that fails the exact same way. I can log in as two different users (concurrently) and I only ever see one user listed in the TIBDatabaseInfo.UserNames, or FlameRobin's "Connected Users" list, no matter how many users are actually logged in.
So I browse the contents of the MON$ATTACHMENTS system table, and sure enough, all connected users are listed there. So my question is.. how do I get the correct list of connected users, using TIBDatabaseInfo?
Assuming:
...
fb_db: TIBDatabase;
memUsr: TMemo;
...
procedure TfrmCurUsr.LoadUsers(const sel_usr_nm: String);
begin
// Load Users;
fb_info.Database := fb_db;
memUsr.Lines.AddStrings(fb_info.UserNames, True);
end;