You cannot view this unit as you're not logged in yet.

6 thoughts on “4. Variables: Chapter IV

  1. Giridharan Varadharajan says:

    Giridharan Varadharajan.
    Let me summarize my understanding of this Chapter.
    You tried to add two fields of Different Types( Number and String)
    It is not possible do that.
    You created a variable of type String and assigned initial Value to “”.
    You also Declared the same in system Scope to use across tally.
    and in Field also you instructed the Compiler to use the Variable.
    In the Field of type Number you have Through Variable changed it to string
    and on calling the field you used $$String.
    [Variable:Var Name]
    Type: String
    [System : Variable]
    VarName : “”
    In the Field
    [Field : Field Name}
    use: Number Field
    storage : Field Name
    Variable : Var Name
    in the Resultant Field
    [Field: Resultant Field]
    use : Name Field
    setas : $$String : $Field Name + $$String : $ UDF
    The Function of variable here is to convert the Number into Text for Result.
    I hope I have Understood in a right way.
    please evaluate.

  2. Giridharan Varadharajan says:

    Giridharan Varadharajan,
    Sir,
    I tried from sample TDL Static variable.
    A function has been created using the attribute: Static Variable of type String
    In the function increment was given for the variable.
    Button has been created with short cut keys with an action to call function
    In the Field it was setas : “Value of Static Variable Static Var = ” + $$String:##StaticVar
    since increment was given at function every time we click the button Variable value in the Field increases by 1.
    I have asked to Display the Report in gateway of tally with the following Code
    [#Menu : Gateway of Tally]
    Add : Item : Static Variable : Call : Static var in Func
    It is working.
    This static var is retained across current session.
    The last value stored is not getting uploaded when tally restarts.
    It is my trial practice.
    I have uploaded the Png output and my Code in my drop box
    For your kind information

  3. Sir
    if we using the $$String in field means why we want to mention the variable name?

  4. Shivansh Agarwal says:

    Dear Sir,
    I am watching this chapter third time but still can’t understand

Leave a Reply