On Sunday 28 August 2016 16:05:34 mohamed hamza wrote:
> Hi Martin,
>
>    But when the user select find button in tdbNav it has a blank grid or
> form where to type in the value he is searching . I want to know which
> field has been selected in the grid or form ?
>
What do you mean with "which field has been selected"? Which field(s) has been 
edited in dsFilter mode?
Something like that in OnBeforeEndFilterEdit (not tested):
"
 for i1:= 0 to sender.fields.count - 1 do begin
  if not sender.fields[i1].isnull then begin  
   //do something with the entered filter value, for example store it in
   //a variable
  end;
 end;
"
In OnAfterEndFilterEdit the actual find operation can be performed. If the 
filter values are not stored in variables the filter values can be obtained 
by (not tested):
"
 for i1:= 0 to sender.fields.count - 1 do begin
  if not sender.fieldfiltervalueisnull(sender.fields[i1],fek_find) then begin
   val1:= sender.fieldfiltervalue(sender.fields[i1],fek_find);
   //do something with the filter value,
   //for example call the appropriate find or locate function
  end;
 end;
"
Martin

------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to