Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-04

TIBConnection LoginPrompt

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Koenraad Lelong

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.

Reply by email

Koenraad Lelong
to Koenraad Lelong
Koenraad Lelong wrote 11 lines
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.

Regards,

Koenraad Lelong

Reply by email

Unknown author
to Koenraad Lelong
Koenraad Lelong wrote 16 lines
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.

Reply by email