Sign in Join

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

Mailing lists / lazarus / 2003-03

How to...

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Luis R. Hilario B.: How to catch an error of this type? "ERROR in gtk-interface: TGtkListStringList.Get Out…
Show quoted text 17 lines
Hello, How to catch an error of this type? "ERROR in gtk-interface: TGtkListStringList.Get Out of bounds." Using: Try ... Except On E???Error do // <----- (OjO) ... end; Without using: if xxx.Itemindex < 0 Or...

You can't. It does not raise a specific exception. (FYI: it's a div by zero) Maybe we can add an EIndexOutOfBounds to the LCL, since this is interface independent.

The bad news: "Warning: TgtkObject.GetValue not implemented for TTOGGLEBOX"

implemented.

Mattias

Reply by email

Luis R. Hilario B.

Hello,

How to catch an error of this type?

"ERROR in gtk-interface: TGtkListStringList.Get Out of bounds."

Using:

Try
...
Except
  On E???Error  do // <----- (OjO)
...
end;

Without using:
if xxx.Itemindex < 0 Or...

The bad news:
"Warning: TgtkObject.GetValue not implemented for TTOGGLEBOX"

Reply by email