[Lazarus] TIBConnection LoginPrompt

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri Apr 6 14:19:29 CEST 2012



On Fri, 6 Apr 2012, Koenraad Lelong wrote:

> On 06-04-12 10:14, Koenraad Lelong wrote:
>> Hi,
>> 
>> How does one use the LoginPrompt of a TIBConnection ?
>> I set it to True and then started my app. There is no loginprompt-form,
>> but an error the user/password is not defined.
>> 
>> I'm still using Lazarus 0.9.30/fpc 2.4.2.
>> 
>> Thanks for any hints.
>> 
>> Koenraad Lelong.
>
> Hi,
>
> I tried this with lazarus 0.9.30.4/fpc 2.6.0. This gives the same problem.

If you want it to do something, you must set the OnLogin handler of your connection 
component.

LoginPrompt is an ill-advised attempt at Delphi compatibility.
It's evil; do not use it.

Always first do a login, and then set the connection parameters and connect.

Michael.




More information about the Lazarus mailing list