Sie sind auf Seite 1von 1

;; product: tdl37

;; product-id: 1f56411b-b024-4100-9ae1-249fd71fdf48
;; author: shweta computers

;;objective:-
;;using "control" attribute at menu level
;;=========================================================================

;;global formula definition


[system: formula]
locsr : $$localestring:"sales register"
locpr : $$localestring:"purchase register"

;;add a new menu-item to the gateway of tally


[#menu:gateway of tally]
item : example 37: menu : my menu

[menu: my menu]

;;1st menu option


item: @@locsr : display : sales register

;;2nd menu option.


item: @@locpr : display : purchase register

item: blank
key item: @@locquit

control : @@locsr : ##showsr


control : @@locpr : ##showpr

[system: variable]
showsr : yes

;;this will hide the 2nd menu-option


showpr : no

[variable: showsr]
type : logical

[variable: showpr]
type : logical

;; notes:-
;;
;; 1) we are using item to define menu-items rather than using key item
;; this is because key item is supported in tally 9 only, whereas
;; item is supported in both tally 7.2 and tally 9

Das könnte Ihnen auch gefallen