Sir R. M8gic1an
2010-09-15 07:22:32
So I've been working on TrackObject, and I wanted to see how successful it was. And then it came to my mind that this could probably be used around MSI more often, be quite a nice feature and it would help us set a success target.
Of course what I had made for TrackObject was not this big, but I think this would be a better way to do it :)
And I am satisfied to say that my currect TrackObject is on 74%, but however I want it up at 85%.
What do you guys think?
~RM
type
TTrack = record
Name: string;
Searches: integer;
Successes: integer;
end;
const
T_TrackObject = 0;
TRACK_ITEMS = 0;
var
Tracking: array[0..TRACK_ITEMS] of TTrack;
Procedure Track_Search(which: integer);
begin
Inc(Tracking[which].Searches)
end;
Procedure Track_Success(which: integer);
begin
Inc(Tracking[which].Successes);
end;
Procedure Track_Print(which: integer);
begin
writeln('~ Track Record');
writeln('~ ~ ' + Tracking[which].Name);
writeln('~ ~ Searches: ' + IntToStr(Tracking[which].Searches));
writeln('~ ~ Successes: ' + IntToStr(Tracking[which].Successes));
writeln('~ ~ Success %: ' + FloatToStr(Tracking[which].Successes * 100 / Tracking[which].Searches));
end;
Procedure Track_PrintAll;
var
i: integer;
begin
for i := TRACK_ITEMS DownTo 0 do
Track_Print(i);
end;
Of course what I had made for TrackObject was not this big, but I think this would be a better way to do it :)
And I am satisfied to say that my currect TrackObject is on 74%, but however I want it up at 85%.
What do you guys think?
~RM