YES I KNOW this is a very very retarted question. BUT i just cannot think today. and i feel like shit for wasting your time while u r reading this. but here it is.
here's my function
SCAR Code:
function CountFlax : Integer;
var
FlaxCounted: Integer;
begin
LoadDTM;
NumberOfFlax := CountItemsDtm('inv',Flax);
if (NumberOfFlax >= 1) and (NumberOfFlax <= 28) then
begin
FlaxCounted := 0;
FlaxCounted := NumberOfFlax + FlaxCounted;
NumberOfFlax := 0;
result := FlaxCounted;
end;
FreeDTM(Flax);
end;
now can someone tell me why it doesnt count properly? or any way i could fix it up so it counts the flax properly?
thanks,
prince