Results 1 to 6 of 6

Thread: Progress report

  1. #1
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default Progress report

    I got the rest of my progress report, I just can't seem to find a formula to get it to check how many herbs cleaned per hour. Help?


    Thanks in advance.

  2. #2
    Join Date
    Feb 2012
    Location
    UK
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Writeln('Herbs Cleaned ' + IntToStr(HerbsCleaned) );

    The "herbscleaned" at the end is related to your script i belive. But thats the basic structure. Not sure if thats answered your question sorry.

  3. #3
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Well since your script banks I assume use:

    Simba Code:
    procedure HerbsBanked;
     var
      HerbsCleaned: Integer;

      begin
      if BankScreen then
      IncEx(HerbsCleaned, 28);
    end;

    and then include what Glen said into the progress report.

    So like:

    Simba Code:
    procedure Report;
     begin
      if BankScreen then

      begin
       //Time running
      // blah blah
       Writeln('Herbs Cleaned ' + IntToStr(HerbsCleaned) );
      end;
    end;
    Current Project: Retired

  4. #4
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    No, I have that.
    I mean, to calculate how many per hour, not how many total.

  5. #5
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    The something like this will work:

    Simba Code:
    procedure HerbsPerHour;
     Begin
      HerbsPH := Round((HerbsCleaned * 3600) / (GetTimeRunning / 1000));
    end;
    Current Project: Retired

  6. #6
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Uh, it's showing 0 p/h now if that code is used. :|
    Last edited by NKN; 03-22-2012 at 08:22 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •