My function is not working Plz Help [Function:AutoLedgerFunction] Variable : AutoMaster : Logical 00 : QUERY BOX : "Do You Want To Create Default Master " : Yes : No 01 : SET : AutoMaster : $$LastResult 02 : Display Msg: "Wait !!" : "Please Wait...... !!!!!" Object : Unit 364 : New Object : Unit ;;365 : Insert Collection Object : Symbol 366 : Set Value : IsSimpleUnit : "Yes" 367 : Set Target : .. ;;368 : Set Value : UNT Type : "Simple" 367 : Set Value : Symbol : "Pc" 368 : Set Value : Original Symbol : "Pieces" 369 : Save Target 370 : Msg Box : "Success !!" : "Default Master Created Successfully...... !!!!!"
Try this...... [#Menu: Gateway of Tally] Add : Button : Create Unit [Button : Create Unit] Title : "Create Unit" Key : Alt + C Action : Call : Auto Ledger Function [Function:AutoLedgerFunction] Variable : AutoMaster : Logical 00 : QUERY BOX : "Do You Want To Create Default Master " : Yes : No 01 : SET : AutoMaster : $$LastResult 02 : Display Msg: "Wait !!" : "Please Wait...... !!!!!" ;Object : Unit 364 : New Object : Unit 365 : Set Value : IsSimpleUnit : "Yes" 366 : Set Target : .. 367 : Set Value : IsSimpleUnit : Yes 368 : Set Value : Name : "Pc" 369 : Set Value : Original Symbol : "Pieces" 370 : Create Target 380 : Msg Box : "Success !!" : "Default Master Created Successfully...... !!!!!"
PLEASE STEADY FUNCTIONS ..... [Function:AutoLedgerFunction] 00 : QUERY BOX : "Do You Want To Create Default Master " : Yes : No 01 : If : $$LastResult 02 : Display Msg: "Wait !!" : "Please Wait...... !!!!!" 010 : New Object : Unit 020 : Set Value : Name : "Pc" 030 : Set Value : Original Symbol : "Pieces" 040 : Set Value : IsSimpleUnit : "Yes" 050 : Set Target : .. 060 : Create Target 100 : Msg Box : "Success !!" : "Default Master Created Successfully...... !!!!!" 200 : End If I HOPE THIS WILL WORK. I have a question. Exactly where do you need this when it is so easy to go thru' regular unit creation.? It's ok if you have an excel sheet of units and import it but this is hard coded. Regards,