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 1:50PM
    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 1:50PM
    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

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.