[Lazarus] TSQLDBWebDataProvider.OnGetParameterType wrong number of parameters
Leonardo M. Ramé
l.rame at griensu.com
Sat Oct 23 20:54:40 CEST 2010
On 2010-10-23 15:41:08 -0300, Leonardo M. Ramé wrote:
> I'm getting the error Wrong number of parameters specified for call to
> "myOnGetParamType" when trying to set a method to the OnGetParameterType event
> of TSQLDBWebDataProvider.
>
> The event OnGetParameterType is of type TGetParamTypeEvent, defined in
> sqldbwebdata.pp:
>
> TGetParamTypeEvent = Procedure (Sender : TObject;
> Const ParamName,AValue: String; Var AType : TFieldtype) of object;
>
> My method is this:
>
> procedure myOnGetParamType(Sender : TObject; Const ParamName, AValue : String;
> Var AType : TFieldtype);
>
> As you can see, my method has the same structure of TGetParamTypeEvent.
>
> Why I'm getting this error?
>
Sorry, forgor to add the @ in the assignemnt, it should be
@myOnGetParamType. :)
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the Lazarus
mailing list