Having Variable problems

Hi,
I want to be able to pass in a start date and end date for use in the report title, but I am having difficulties in getting it to work.
I looked over the fAQ and the help file and none of the variable stuff seems to work for me.

I have on the designer a object that has the following text:

Overdue Report from [startdate] to [enddate]

The user selects the startdate and enddate from a dialog before the report is shown, and then in my code I have the following:

report_queries_dm.thereport.Dictionary.Variables:= dateTostr(startdate.date);

but this does not work, I just get some garbage back in the report.

I also tried the insert method and that did not work either.

I just want to pass in some static data for use in the report title.

Thanks,

T

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:26PM
    try wrapping it with apostrophes
    ''''+dateTostr(startdate.date)+'''';
    regards ;)

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.