;;Action Attribute /* Explanation - This example shows the use of the Action statement inside a function. - Here, the function executes the Print Report action when it is called. ;;Syntax [Function : ] 100 : Action : */ ;;=== Function Definition executing Action - Print Report [Function: TSPL ActionFunction] 100 : Action : Print Report ;;=== Button Definition call the function [Button : TSPL ActionButton] Title : "Click here" Action : Call : TSPL ActionFunction Key : Alt + R ;;=== Report to demonstrate the working of 'Action' attribute in Function definition using Button 'TSPL ActionButton' [#Menu: Gateway of Tally] Add : Item : "Action Attribute" : Display : TSPL ActionAttribute [Report: TSPL ActionAttribute] Form : TSPL ActionAttribute [Form: TSPL ActionAttribute] Part : TSPL ActionAttribute Button : TSPL ActionButton [Part: TSPL ActionAttribute] Line : TSPL ActionAttribute Border : Thin Box [Line: TSPL ActionAttribute] Field : TSPL ActionAttribute Border : Thin Box [Field: TSPL ActionAttribute] Use : Name Field Set as : "On clicking button 'Alt + R', the current report will be printed." Style : Normal Bold Full Width : Yes ;;End of File