use of "MAD"

Discussion in 'Tally Developer' started by Rupal Agarwal, Mar 9, 2022.

    
  1. Rupal Agarwal

    Rupal Agarwal Member


    Hello everyone

    can anyone help me in telling whats the use of "mad" in the below formula

    [Function : SaveAsPDF]
    Variable : PrintFileName : String
    Local Formula:Wpinvoicenumber:$$StringFindAndReplace:$VoucherNumber:"/":"-"
    Local Formula:Wpinvoicetype:$$StringFindAndReplace:$VoucherTypeName:"\":"-"
    Local Formula:Wpinvoiceparty:$$StringFindAndReplace:$PartyLedgerName:"\":"-"
    Local Formula:Wpinvoicedate:$$String:$Date
    500 : SET : PrintFileName : "PDFs"+"\"+@Wpinvoicenumber+"_"+@Wpinvoiceparty+"_"+@Wpinvoicedate ;
    600 : SET : SVExportFormat : $$SysName:pDF
    800 : SET : VCHPrintJurisdiction : If $$IsEmpty:mad:mad:DSPJurisdictionValue Then ##SAJurisdiction Else @@DSPJurisdictionValue
    940 : SET : SVPrinterName : "Adobe PDF"
    1400 : SET : SVPrintFileName : $$MakeExportName:##PrintFileName:##SVExportFormat
    1500 : SET : SVOpenFileAfterExport : Yes
    1600 : EXPORT REPORT :.: TRUE
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    No value / No use............

    Replace mad:mad: with @@
     


  3. naren1234

    naren1234 Member


    Actually, it's the below text in your code which gets converted to the MAD emoji :mad:
    Code:
    :@

    When such code with the MAD emoji is copied back to a text editor like notepad, the converted emoji shows up as below text
    Code:
    :mad:

    Just replace all occurrences of : mad : (without the in-between spaces) with the original text : @ (without the in-between space) in your text editor and you should be good.

    Just FYI, when writing a post/reply with codes, it is better to use the insert code option to put your code.
     
    Rupal Agarwal likes this.


Share This Page