Tally ERP 9 | Tally 9 | Tally 8.1 | Tally 7.2 | Tally 6.3 | Learn Tally TDL

Monday, February 5, 2007

Example 3: Display a Form

[#Menu: Gateway of Tally]
;; This will add a Menu-option before the Balance Sheet
Add: Item: Before: ~Balance Sheet: MyOption: Display: rptMyReport

;; Remarks
;; To add menu-option after Balance Sheet, use keyword After
;; Example:-
;; Add: Item: After:~Balance Sheet: MyOption: Display: rptMyReport
;; or
;; Add: Item: At Beginning: MyOption: Display: rptMyReport
;; or
;; Add: Item: At End: MyOption: Display: rptMyReport

[Report: rptMyReport]
Add: Form: frmMyForm

[Form: frmMyForm]
Add: Part: prtMyPart

;; This specifies that the width of the form must be 40% of the screen width
Width: 40% screen

;; This specifies that the height of the form must be 50 of the screen height
Height: 50% screen

[Part: prtMyPart]
Add: Line: lnMyLine

[Line: lnMyLine]
Add: Field: fldMyField

[Field: fldMyField]
Set as : "Here's a Sample FORM"

1) The above program defines a menu-option "MyOption" in the "GateWay of Tally" screen before Balance Sheet. Note the tidle character ~ in front of Balance Sheet which highlights the next letter after it.
2) When the user selects this option "MyOption", it displays a Form.

Click here to download the Example 3 compiled file and the source-code.

Tally; Tally Developer and Tally Definition Language are trademarks or registered trademarks of "Tally Solutions FZ LLC", Bangalore.