Access fields of dataset in the code.

edited 3:06AM in FastReport 4.0
Let's say i have a dataset ds with resulting fields: Name, Address, Telephone, BillAmount.

How can I access the field BillAmount?
I need it for some calculations. Can't seem to find it in the documentation.

Thanks.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:06AM
    read the user manual chapter on script
    in the internal code of the report, typically in the obp event of a band
    <ds."fieldname">
  • edited 3:06AM
    gordk wrote: »
    read the user manual chapter on script
    in the internal code of the report, typically in the obp event of a band
    <ds."fieldname">


    thanks gordk.

    i put the <ds."fieldname"> inside obp event but I am getting
    Unknown variable or datafield. error.

    the dataset is from a TfrxSDQuery using Report.GetDatset().

    Why am i getting this error?

  • gpigpi
    edited 3:06AM
    Use
    <YourRealDatasetName."YourRealFieldName">

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.