Home General

Clicking on a detail band

edited June 2010 in General
Is there an example of how to extract the undelying record for a detail band
when the user clicks on a detail band in preview mode? I have found an event
called CommandClick, but so far am unable to find any examples of how to
extract the field information from our underlying Firebird Database. I was
thinking something like:

OnCommandClick event :
begin
Invoicenumber := IBOQuery.FieldByName('InvoiceNumbe').AsInteger;
.....Do something with invoice number
End;

This obviously is over simplified but in essence what im am looking to
achive...


Can anyone help ?

Thanks
Colin Coleman

Comments

  • edited June 2010

    Here is an rbWiki 'How To' example..

    www.digital-metaphors.com/rbWiki/Delphi_Code/Formatting/How_To..Clickable_DrawCommand_with_Custom_Info


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2010
    Excellent...Thanks

    Works brilliantly

    Colin Coleman

This discussion has been closed.