Wednesday, February 20, 2019

Display Sum or Addition of Two numbers taking input from user in Tally ERP 9 using Tally Developer 9

 ;;Input 2 numbers and Display Sum or Addition



[#Menu: Gateway of Tally]
Add : Key Item: Addition: L : Create:Addition
 ;; Object Association done at Report Level
 [Report: Addition]
Form : Addition
Variables: Var,Var2

[Form:Addition]
Parts : Addition
[Part:Addition]
 Lines :  header1,num1,num2,res,footer1

[Line: header1]
 Fields:  h1
 [Field: h1]
     Width:25% screen
     Info:"Addition of Two numbers:"   
 [Line: num1]
 Fields:  p1,Num1
 [Field: p1]
     Width:25% screen
     Info:"Enter 1st No.:"


  [Field:Num1]
   
     Use: Number Field
     Background: Yellow
     Width: 25% screen
     Storage: ##Var
    [Line: num2]
 Fields:  p2,Num2
 [Field: p2]
     Width:25% screen
     Info:"Enter 2nd No.:" 
      [Field:Num2]
     Use: Number Field
     Background: Green
     Width: 25% screen
     Storage: ##Var2
   
    [Line: res]
 Fields:  p3,res
 [Field: p3]
     Width:25% screen
     Info:"Result:"
 [Field:res]
     Use: Number Field
     Background: Red
     Width: 25% screen
     Set Always:Yes
      Set as:@@Sum
[Line: footer1]
 Fields:  f1
 [Field: f1]
     Width:25% screen
     Info:"Thank you!!"     
[Variable:Var]
    Type: Number
    Default:20
[Variable:Var2]
    Type: Number
    Default:10
   
[System:Formulas]
    Sum:#Num1+#Num2

;;End of File



Output:

Display Sum or Addition of Two numbers taking input from user in Tally ERP 9 using Tally Developer 9

   

See also: Tally TDL code for Creating new Ledger in Tally ERP 9 using Tally Developer 9
   

No comments:

Post a Comment