Re: OnFilterRecord




"Bruce Roberts" <ber@xxxxxxxxxxxxxxxxxxxxxx> wrote in message news:BDvbe.2369$BW6.564369@xxxxxxxxxxxxxxxxxxxxxxxx


OnFilterRecord is of type tFilterRecordEvent, not string. And its not the
name of a procedure, its a method - an important distinction. If you want to
know the setting of OnFilterRecord you should be able to do something like

if Assigned (onFilterRecord)
then begin
   if onFilterRecord = someFilterMethod
   then begin

Ok, understood. But: I have two methods procedure TForm1.FindName(DataSet: TDataSet; var Accept: Boolean); procedure TForm1.FindNames(DataSet: TDataSet; var Accept: Boolean);

If I have to know which one is on, the statement

   if Assigned (OnFilterRecord) then if OnFilterRecord = FindName then ...

causes an error 'Not enough actual parameters'.

.



Relevant Pages

  • Re: compilation of ms crypto api program
    ... > Actually there is a distinction, although the latter is rarely encountered, ... > partly because it isn't very useful due to arrays not being first-class ... function test: Boolean; ...
    (sci.crypt)
  • Re: OnFilterRecord
    ... Of course OnFilterRecord is a name of a procedure. ... OnFilterRecord is of type tFilterRecordEvent, not string. ... Boolean); ...
    (alt.comp.lang.borland-delphi)