How to Modify [System : Variable]

Discussion in 'Tally Developer' started by Gangadhar C Beldar, May 14, 2022.

    

  1. [System: Variable]
    LocVar : "This is the default value"
    [Variable: LocVar]
    Type : String

    [#Menu : Gateway of Tally]
    Item : BLANK
    Key Item : Brokerwise Receivables : R : Display : Test
    [Report : Test]
    Form : Test
    [Form: Test]
    Part: Test
    [Part: Test]
    Line: L1, L2, L3, L4
    [Line: L1]
    Field: Name Field
    Local: Field: Name Field : Set as : @@CmpMailName
    [Line: L2]
    Field: Name Field
    Local: Field: Name Field : Set as : ##LocVar
    [Line: L3]
    Field: LT
    [Field: LT]
    Use : ShortNameField
    Set As : "Indian" ;@@CmpMailName
    Variable : LocVar
    Modifies : LocVar
    [Line: L4]
    Field: Name Field
    Local: Field: Name Field : Set as : ##LocVar
    ;;-------------------------- End

    Unable to Modify / Assign value to Variable : LocVar, What is correct way.
    According to the code Last value of LocVar should be "Indian". But not getting modified. What is mistake ?
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [Line: L4]
    Field: Name Field
    Local: Field: Name Field : Set as : #LT
     



  3. Thanks for the reply, But Sir, I want the value of Variable LocVar has to change / assign, for further usage
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [#Menu : Gateway of Tally]
    Item : BLANK
    Key Item : Brokerwise Receivables : R : ALTER : Test
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    And also..........


    [Field: LT]
    Use : ShortNameField
    Set As : $$Value
     



  6. No Sir, Not Working.
    My Requirement : Want to "modify / change / assign" "System Variable(eg. LocVar)" with a "Field Value" in a "Part".
    And will be using this Changed System Variable to Filter a Collection.
     


  7. balajimg

    balajimg Active Member


    change it through button
    where u call a report n modify in field level
     



  8. This code is in "Print Receipt". Any way by Function ?
     


  9. balajimg

    balajimg Active Member


    it can be through function or report
     



  10. Thank You Sirji, First I created A Bottom in "Voucher Entry/Alter Mode" to Print the Voucher. With this I set the value of System Variable in a Function then call to Print Report. Once again thanks
     


Share This Page