How do I set a query parameter from a dialog

edited July 2010 in FastReport 4.0
I have a dialog that has a TfrxDateEditControl named DateFrom.

I would like to use this to set a parameter on my query.
I have my parameter set as [DateFrom.Date]

Running it gives the following error:
Could not convert variant of type (Array Variant) into type (Date)

So, how can I use the TfrxDateEditControl to set the query parameter?

Ta

Sean

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:45AM
    parameterize your query Assuming you are using internal data components.
    in the parameter edito
    select the parameter type and in value box point it to the dateedit.
    Look at the main demo internal datasets reports.
  • edited 3:45AM
    gordk wrote: »
    parameterize your query Assuming you are using internal data components.
    in the parameter edito
    select the parameter type and in value box point it to the dateedit.
    Look at the main demo internal datasets reports.

    Thanks. The problem was I was wrapping my dialog value in [].
    Once I took those off, it was all good.

    Sean

Leave a Comment