Expired TCP File Running

Discussion in 'Free Source Codes' started by Anand Sharma, Aug 14, 2019.

         
  1. Anand Sharma

    Anand Sharma Member


    Dear Experts

    I was Create One TCP File for 30 Days only but some user run expired tcp file with set system time & date (Back Date of System Time & Date). In This Case......... Plz Suggest me or tell me any code for restriction.
     


  2. ASHOK

    ASHOK Member


    Back System date & time me tally not working
     


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    I don't think Tally will run properly, if System date is not properly set.
     


  4. drive

    drive Active Member


    it's complicated every time change date for use your tcp. after system date change other application not work like google chrome/internet explorer, google drive /One drive etc.
     


  5. Anand Sharma

    Anand Sharma Member


    Drive Sir & Amit Sir Thanks For Replay
    I was send tcp file for 1 month demo & if requirement fullfill then purchase tcp file

    User Set System date then stat tally & close tally reset system date.....

    in this case My demo tcp file is running properly

    any code for check condition & not work tcp file in demo mode
     


  6. drive

    drive Active Member



  7. MarutiKalekar

    MarutiKalekar New Member


    Through function, you can do this
    1. Schedule a system event which runs after every 24 hours
    2. Set the counter as per your trial period
    3. decrease the counter
    4. Invisible the fields or menu as the trial counter exceeds the count
     


  8. Vikram Bhat

    Vikram Bhat Member


    Can you help me the function on count please give me the code
     


  9. MarutiKalekar

    MarutiKalekar New Member


    Code:
    [System: Events]
        TCP VerCheck    : System Start    : Yes:Call: isTCPExpired
        Tcp CompLoad    : Load Company    : Yes:Call: isTCPExpired
       
    
    [Function: isTCPExpired]
        Variable: lastStartDate        : Date
        Variable: currentDate        : Date
        Variable: lastCount            : Number
        Variable: isLoadedFirstTime    : String
       
        010    : Set    :isLoadedFirstTime: $isLoadedFirstTime:Company:##SVCurrentCompany   
        020    : If: ##isLoadedFirstTime    = "NO"
        030    :     Call    : UpdateTCPTime
        040    : End If
       
       
        050    : Set    : lastStartDate    : $lastStartDate:Company:##svcurrentCOmpany
        060    : Set    : currentDate    : $$SysInfo:SystemDate
        070    : Set    : lastCount        : $TCPDayCount:Company:##svcurrentCOmpany   
    Object        : Company            : ##SVCurrentCompany
           
        080    : If: (##lastStartDate != ##currentDate)
        090: Set Target
        100    : Set Value    : TCPDayCount: (##lastCount + 1)
        110    : Set Value    : lastStartDate: $$SysInfo:SystemDate
        120    : Save Target:..
        130    : End If
    
       
    [Function: UpdateTCPTime]
        Object: Company : ##SVCurrentCompany
       
        020    : SET TARGET
        030    : Set Value    : isLoadedFirstTime: Yes
        040    : Set Value    : lastStartDate: $$SysInfo:SystemDate
        050    : Set Target:..
        060    : Accept Alter
    
    [System: UDF]
        lastStartDate        : Date        : 5421
        isLoadedFirstTime    : Logical    : 5422
        TCPDayCount            : Number    : 5423
       
       
       
       
    [System: Formulae]
        isTCPExpired    : If (($TCPDayCount:Company:##svcurrentCOmpany) < 30) then True else False
    New to TDL, tried something hope you like and another thing this has one drawback too, What if user enables the TCP on the required date or for a particular time
    for this you can enhance something like based on the Gap of dates
     


  10. Vikram Bhat

    Vikram Bhat Member


    Some Error Please Chek

    upload_2019-7-18_6-55-6.jpeg
     


  11. Jay kumar tailor

    Jay kumar tailor Active Member


    Stop This Thing.

    Making This Type of codes is Violation Of Licencing Rules.
     
    sandeep76out likes this.


  12. MarutiKalekar

    MarutiKalekar New Member


    It's working properly here. Use acceptalter, set target , etc
     
    M K RAJU likes this.


  13. MarutiKalekar

    MarutiKalekar New Member


    Hi, Thank you for your kind update.
    I was trying to just help to Mr. Vikram Bhat because few people are taking disadvantage of his hard work. Is tally have the solution for Mr. Anand Sharma problem??
     


  14. Anand Sharma

    Anand Sharma Member


    Respected All Developers

    Thanks For Replay...... But i am facing this issue... some people use tcp file without renew or purchase with set system date & time ...
    i will try this code..... thanks for sharing this code.........
     
    M K RAJU likes this.


  15. Vikram Bhat

    Vikram Bhat Member



    Its true
     


  16. M K RAJU

    M K RAJU New Member


    SAME ERROR SHARE CODE OR MAIL ME: mkraju_mst@rediffmail.com
     


  17. M K RAJU

    M K RAJU New Member


    Sir please give me working code or send me mail id mstbbvrm@gmail.com
     


Share This Page