Pass variable to fastreport 3.03

In the C++Builder 6 projects I use Variables to pass to fastreport 3.03,

I try 2 methodes :
DModule->frReport1->Variables->Variables["COMP"]="Title of report"; //Exple : "The Castumers"
and this :
DModule->frReport1->Variables->AddVariable("MYVAR","DT1",xDt1); //Date

But, I'm try with this method and d'ont work.

Error message :
Error i expression, Undeclared identifier "COMP"

The same with the second methodes.
Error i expression, Undeclared identifier "DT1"

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:16PM
    from the programmers manual
    you m7ust use extra delimiters when passing string values.

    frxReport1.Variables := '''' + 'test' + '''';

    also please note you are postiing in the wrong forum, you should be in the fr3 forum.


  • edited 3:16PM
    Thank you very much.

    I'l try this solutions
  • edited 3:16PM
    it's not work.

    the same message error?

    I developpe in C++Builder 6

    Please help me.
  • edited 3:16PM
    I use the variable as parameter to pass to report, string value :
    String xTitle="The title of report";
    DModule->frReport1->Variables->Variables["COMP"]=xTitle;
    
  • HelenMHelenM USA
    edited 3:16PM
    I would like to pass the Paypal variable custom from the shopping cart to Paypal. In nopcart.js in line 801 there are 6 paypal variables defined. item_number, quantity, amount, item_name, shipping, on0. I would like to add the custom variable to this list.

    I have tried to add the following line of code but it does not work:
    strOutput = <input type=hidden name=custom_ strFooter value= fields4 >;

    This is what is in the nopcart.js
    if PaymentProcessor == pp
    //Process hidden values for PayPal.
    strOutput = <input type=hidden name=item_number_ strFooter value= fields0 >;
    strOutput = <input type=hidden name=quantity_ strFooter value= fields1 >;
    strOutput = <input type=hidden name=amount_ strFooter value= fields2 >;
    strOutput = <input type=hidden name=item_name_ strFooter value= fields3 >;
    if i == iNumberOrdered
    strOutput = <input type=hidden name=shipping_ strFooter value= strShipping >;
    else
    strOutput = <input type=hidden name=shipping_ strFooter value=0.00>;

    strOutput = <input type=hidden name=on0_ strFooter value= fields5 >;


    Has anybody got an idea on what I need to do?
    Many thanks

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.