Function

Delphi

20/10/2003

eu tenho uma function assim:

FUNCTION ver(A : Integer): Boolean;

Eu executo ela sem problemas e o result é igual a FALSE, como eu faço um comando tipo assim:

if VER = FALSE then
EXIT;

Como eu faço para saber o resultado da funcao?


Havilux

Havilux

Curtidas 0

Respostas

Marcelo Saviski

Marcelo Saviski

20/10/2003

Armazene o valo booleano em alguma variavel

+ ou - assim:

var
  temp: Boolean;
begin
  temp := VER(10);
  if temp = false then Exit;
  //ou if not temp then Exit;
end;



GOSTEI 0
POSTAR