How Can I use "$$StringLength" in If Statement

Discussion in 'Tally Developer' started by Properson2020, Oct 14, 2020.

    
  1. Properson2020

    Properson2020 New Member


    Code:
    [System: Formula]
    Mobileno :$$String:"91" + $Ledgermobile:Ledger:$Ledgername
    
    [Function:onformaccept]
    10 : QUERYBOX : "Send Whatsapp Message" : Yes:No
    20 : IF : $$LastResult
    30 : CALL : CHEKIF
    40 : ENDIF
    
    [Function:CHEKIF]
    10 : IF : $$StringLength:@@mobileno = $$String:"12"
    20 : Msg Box : "Error" : "Phone is valid"
    30 : ELSE
    40 : Msg Box : "Error" : "Phone Not valid"
    50 : ENDIF
    I am trying to use mobile validation in tdl
    I tied following code but it seems to not working
    what the problem i cant found please help me to solve the problem
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Check Mobile number field in Master.....Is it String........... you have not added $$String in your formula....just the string:91

    Also your condition in Function...why are you comparing it with string instead of number??
    $$StringLength:mad:@mobileno = 12
     


  3. Properson2020

    Properson2020 New Member


    Thank You Sir ... for great support
    It's working
     


Share This Page