Subject Re: [IBO] howto: Save and Reuse Login Information
Author Artur Anjos
Gary:

I think BeforeConnect/OnLogin and AfterConnect is what you looking for.

Use the proprieties UserName, SQLRoleList and SQLRole.

Artur


----- Original Message -----
From: "Gary Holbrook" <gary@...>
Newsgroups: egroups.ibobjects
To: <IBObjects@yahoogroups.com>
Sent: Monday, June 17, 2002 11:06 PM
Subject: [IBO] howto: Save and Reuse Login Information


> I searched the list for login/TIB_Connection/Connection but did not find
> anything to help me... So if someone could point me in the right
direction,
> I would be quite pleased!
>
> When a user logs into the app correctly, I would like to capture the
> username and role to write those to the registry.
> When the app starts up again, I would like to populate the TIB_Connection
> with the saved username and role values for the user. I'll save the
values
> in the registry under HKEY_CURRENTUSER, that's not a problem...
>
> Where and when is the best place to get the values used on a successful
> login?
> And where and when is the best place to put them so they show up in the
> login dialog?
>
> We're using:
> D6 Pro
> IBO 4.2.Ha
> TIB_Connection.LoginPrompt := TRUE
>
> Thanx,
> G
> Gary Holbrook
> NIS Corp.
>
>
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>