zizil
zizil

Reputation: 89

type of expression must be boolean

i got an error message type of expression my be boolean..how i want to solve this problem

function GetModeratedFormName(sSourceModuleName: String) : TForm;  
begin      

    if AdditionalModerator(sSourceModuleName) then exit;  
    if sSourceModuleName = 'frmCI' then
        RESULT := frmCI;
end;

Upvotes: 1

Views: 2003

Answers (1)

RRUZ
RRUZ

Reputation: 136451

@zizil, apparently the problem is wich you AdditionalModerator function does not return a boolean type.

you must write something like this

 function AdditionalModerator(Param1:String) : Boolean;
 begin
   // your code goes hee
 end;

Upvotes: 5

Related Questions