ALKA.......!!!!! Grazie per la tua risposta è servita tanto a farmi capire l'errore dove stava... in pratica sbagliavo la funzione ma sono riuscito a risolvere il problema.......
e l'ho risolto in questo modo... in pratica sbagliavo tutto......
codice:
function TFMain.InRange(const AValue, AMin, AMax: Integer): Boolean;
var A,B: Boolean;
begin
A := (AValue >= AMin);
B := (AValue <= AMax);
Result := B and A;
end;
procedure TFMain.Button1Click(Sender: TObject);
Var
Valore, Min, Max: Integer;
begin
Valore:= 60;
Min:= 100;
Max:= 500;
if InRange (Valore, Min, Max) = True then
ShowMessage('.:OK:. = ' +IntToStr(Valore))
else
ShowMessage('.:NO:. = ' +IntToStr(Valore));
end;
end.