Similar Function as $$ZeroFill

Discussion in 'Tally Developer' started by Arun Prasath, Feb 26, 2022.

    
  1. Arun Prasath

    Arun Prasath Member


    Dear Experts,

    Is there a function to fill with spaces as $$ZeroFill
    Ex: Instead of Zero i need to fill with space $$Spacefill:"Tally":6

    Results should be " Tally"

    Rgds,
    Arun
     


  2. Himanshu-2002

    Himanshu-2002 Active Member


    Do it Like This

    Set As: " " + "Tally"
     
    Arun Prasath likes this.


  3. Arun Prasath

    Arun Prasath Member


    If "Tally" is a Variable value how i could decide the no of spaces?
     


  4. Arun Prasath

    Arun Prasath Member


    I have done it with a function

    [Function: SETBankNumber]
    Returns : String
    Variable : SBaNum : String

    05 : Set : SBaNum : $BName
    10 : IF : $$StringLength:##SBaNum = 1
    20 : SET : SBaNum : $$String:##SBaNum + $$String:" " ;; 19 Spaces
    30 : ELSE :
    .......................

    Thanks, @Himanshu-2002
     


Share This Page