Recent

Author Topic: [SOLVED] Exception Message Dialog  (Read 1531 times)

Fai

  • New Member
  • *
  • Posts: 24
[SOLVED] Exception Message Dialog
« on: October 08, 2017, 10:16:57 am »
Hi,
How can I prevent exception on database error to showing message dialog? I have put the error message in the stringlist for further execution, so I don't need to show error dialog again.
Thanks,

Win 10, Lazarus 1.8.0RC4 fpc 3.0.4
« Last Edit: October 08, 2017, 01:13:22 pm by Fai »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3628
  • I like bugs.
Re: Exception Message Dialog
« Reply #1 on: October 08, 2017, 12:06:21 pm »
How can I prevent exception on database error to showing message dialog?
By handling the exception in a "try ... except" block.

Quote
I have put the error message in the stringlist for further execution, so I don't need to show error dialog again.
How did you put it in a stringlist? It sounds like you already handled the exception.

Fai

  • New Member
  • *
  • Posts: 24
Exception Message Dialog
« Reply #2 on: October 08, 2017, 01:11:31 pm »
Oops, I think I've made a small mistake  :D.
Yes I already handle the exception. I just wrote a new procedure inside my project & have 'try...except' inside 'try...finally' block and put mysqlconnection.open in try...finally block. Didn't see it for two hours %), I have similar procedure & wondering why this work differently. I guess I'm too much coding these few days. Thanks anyway for your attention.