Unit Function Not Working

Discussion in 'Free Source Codes' started by Anand Sharma, Mar 8, 2020.

    
  1. Anand Sharma

    Anand Sharma Member


    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...... !!!!!"
     


  2. Sanjeev S

    Sanjeev S Active Member


    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...... !!!!!"
     


  3. Anand Sharma

    Anand Sharma Member



    Thanks For Reply Sir,,,
    Its Working

    Thankyou Very Much
     


  4. Anand Sharma

    Anand Sharma Member


    Sir,
    I am Select Yes Or No
    Unit Create Function Running

    Any Suggestion
     


  5. Sanjeev S

    Sanjeev S Active Member


    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,
     


  6. Anand Sharma

    Anand Sharma Member


    Thanks Sir,
    Thankyou Very much for example of If Function
     


Share This Page