Access fields of dataset in the code.

edited 12:19PM 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 12:19PM
    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 12:19PM
    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 12:19PM
    Use
    <YourRealDatasetName."YourRealFieldName">

Leave a Comment