[lazarus] How to...
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Mar 9 12:29:38 EST 2003
On Sun, 09 Mar 2003 11:48:30 -0400
"Luis R. Hilario B." <LuisDigital at BonBon.net> wrote:
> 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
More information about the Lazarus
mailing list