Actually, I suppose you've discovered that that code was erroneous by now. I
was typing before brain was connected to finger.
The (ActiveControl as TDBGrid) returns a pointer to the acive grid. The
Onclick event is a property of the form, so you'd have to use it as follows:
If (ActiveControl is TDBGrid) Then
begin
If ActiveControl as TDBGrid = MyDBGrid1 Then MyGrid1Click
else If ActiveControl as TDBGrid = MyDBGrid2 Then MyGrid2Click;
etc.
end;
Dave
anomander1 <[EMAIL PROTECTED]> wrote: Dave,
I was aware of that already :)
but thanks anyway :)
Marco
---------------------------------
Never miss a thing. Make Yahoo your homepage.
[Non-text portions of this message have been removed]