How to use $$StringFindandReplace when use multiple strings

Discussion in 'Tally Developer' started by Arun Prasath, Sep 20, 2020.

    
  1. Arun Prasath

    Arun Prasath Member


    Dear All


    I need to replace the string with attribute with in the field.


    I used $$StringFindandReplace. It works correctly. My query is how we could use the function when we use multiple different strings.


    Tried Code



    [#Line: VCH Narration]

    Add: Right Field: VchMessage preview

    [Field:VchMessage preview]

    Use: Name field
    Set as: $$StringFindAndReplace:$Narration:"#A":$PartyLedgerName
    Full Width: Yes




    Query


    If $Narration Contains #A then $PartyLedgername also it contains #B then $VoucherNumber.


    Example


    Narration : Dear #A , Pls find the invoice No #B


    Should displays as : Dear XYZ (Pvt) Ltd, Pls find the invoice No IN124/T/2020
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Why are you bothering about Find-Search n Replace..........Simply use ---
    Set as: "Dear "+ $PartyLedgerName + ".Pls find the Invoice # :"+ $VoucherNumber
     
    Jaydeep Shah likes this.


Share This Page