AR 10 Syntax error in script . Format$

Posted by: luca on 11 May 2020, 8:20 pm EST

  • Posted 11 May 2020, 8:20 pm EST

    I updated my AR in vers. 10.

    Before, in the script, i used Format$() to convert value.

    For example i have a syntax error in :

    CType(rpt.Sections(“Detail1”).Controls(“Txt_Detail”),TextBox).value=Format$(Ctype(CType(rpt.Sections(“GroupHeader2”).Controls(“Txt_Header”), TextBox).text,Decimal),“#,##0.00”)

    I’d like use format$ because i have it in lots of report.

    Why now i have this error ? Can i set up anything ?

    Thank you

    Luca

  • Posted 12 May 2020, 12:20 am EST - Updated 30 September 2022, 8:13 am EST

    Hello,

    Please change the scripting language to Vb.Net as shown in the attached image.

    Thanks,

    Mohit

  • Posted 12 May 2020, 12:33 am EST - Updated 30 September 2022, 8:13 am EST

    in Sectionreport1 i have ScriptLenguage vb.net

    Can i control other proprieties ?

  • Posted 12 May 2020, 5:35 am EST

    Hello,

    I have tried to make a sample as per your information but the issue is not reproducible at my end. Please refer to the attached project. Could you please share the stripped-down sample so that I can replicate at my end.

    Thanks,

    Mohit

    SectionReport_Test.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels