problem with exec command

Discussion in 'Tally Developer' started by Rohit Dewal, Jun 25, 2014.

    
  1. Rohit Dewal

    Rohit Dewal New Member


    Iam using tally.erp 9 in educational gold version mode..

    i attached this tdl for tally

    ;;Adds a new option to Gateway of Tally
    [#Menu : Gateway of Tally]
    Add : Item : Before : @@locQuit : Walk Collection - Example2 : Call : MyWalkCollectionExample2

    ;;This is a new Collection definition which is based on Tally Internal Object named Voucher which contains Voucher details
    [Collection : MyVouchers]
    Type : Voucher
    Fetch : *, LedgerEntries.*

    ;;Function to display the Voucher details
    [Function : MyWalkCollectionExample2]
    00 : SET FILE LOG ON
    01 : LOG : "***************************"

    ;; Loop through the Voucher table and display the vouchers
    05 : WALK COLLECTION : MyVouchers
    10 : LOG : $$String:$Date + "," + $VoucherTypeName + "," + $VoucherNumber

    ;; Loop through the ledgers and display the Ledger-name and amount
    15 : WALK COLLECTION : LedgerEntries
    20 : LOG : "=>" + $LedgerName + "," + $$String:$Amount
    25 : END WALK

    30 : END WALK
    90 : SET FILE LOG OFF
    100 : EXEC COMMAND : Notepad : "TDLFunc.Log"





    I am getting the error at line 100 : Unknown Function EXEC COMMAND


    Any solutions??
     


  2. Sangam

    Sangam New Member


    Use the below Function

    [Function : MyWalkCollectionExample2]
    00 : SET FILE LOG ON
    01 : LOG : "***************************"

    ;; Loop through the Voucher table and display the vouchers
    05 : WALK COLLECTION : MyVouchers
    10 : LOG : $$String:$Date + "," + $VoucherTypeName + "," + $VoucherNumber

    ;; Loop through the ledgers and display the Ledger-name and amount
    15 : WALK COLLECTION : LedgerEntries
    20 : LOG : "=>" + $LedgerName + "," + $$String:$Amount
    25 : END WALK

    30 : END WALK

    100 : EXEC COMMAND : Notepad : "TDLFunc.Log

    90 : SET FILE LOG OFF
     
    Vishal1419 likes this.


  3. NAGARAJKMAR SUBRAMANIAN

    NAGARAJKMAR SUBRAMANIAN Active Member


    It is working ,

    Check whether Notepad is working your System
     


Share This Page