How to find a text in a string

Discussion in 'Free Source Codes' started by ABDUL AZIZ, Aug 6, 2019.

    
  1. ABDUL AZIZ

    ABDUL AZIZ Member


    Dear Experts,

    I want to find the position of "@ "in a string like [TDS @ 2% on Rs 44047/-]

    Please help me to get the right way.
     


  2. drive

    drive Active Member


    [System: Events]
    XYZ : Load Company: Yes : Call: Fc_XYZ

    [Function: Fc_XYZ]
    Variable: Tmp : String
    010 : Walk Collection: TmpColl
    015 : Set: Tmp : If $$Name Contains "@" Then $$Name Else "Empty"
    020 : Msg Box: "" : ##Tmp
    025 : End Walk


    [Collection: TmpColl]
    List Name: "TDS @ 2% on Rs 44047/-"
    List Name: "TDS # 4% on Rs 44047/-"
    List Name: "TDS @ 3% on Rs 44047/-"
     


Share This Page