How to use Fortoken function

Discussion in 'Tally Developer' started by mahgs, Feb 13, 2016.

    
  1. mahgs

    mahgs Member


    Dear Expets:

    How to use $$Fortoken Function for delete the space between two words ,It is possible in tdl ,Please guide and kindly help me
     
    Last edited: Feb 14, 2016


  2. Alisher92

    Alisher92 New Member


    Try this:
    [Function: InputString]

    Parameter : InputString : String
    Variable : Input Temp : String
    Variable : Input Count : Number
    Variable : OutputString : String

    10 : Set : Input Temp : ""
    20 : FOR TOKEN : Input TokenVar : ##InputString : " "
    30 : Set : Input Temp : ##InputTemp + $$String:##InputTokenVar + ""
    40 : END FOR
    50 : SET : Input Count : $$StringLength:##InputTemp
    60 : SET : OutputString : $$StringPart:##InputTemp:0:(##InputCount-1)
    70 : RETURN : ##OutputString
     


Share This Page