RAD Studio VCL Reference
|
Raises an EListError exception.
class procedure Error(const Msg: string; Data: Integer); virtual; overload; class procedure Error(Msg: PResStringRec; Data: Integer); overload;
virtual __fastcall Error(const AnsiString Msg, int Data); __fastcall Error(PResStringRec Msg, int Data);
Call Error to raise an exception when an error occurs working with a TList object. Error assembles an error message from the format string (or resource string) passed as the Msg parameter and the data value passed as the Data parameter, and then raises an EListError exception.
Call Error rather than adding a line such as
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|