tags:

views:

82

answers:

1

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;
+5  A: 

@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;
RRUZ
+1 because this is the most likely cause.
Cosmin Prund
Even then zizil would get a "Return value of function 'function' might be undefined" warning, as result will not be set in AdditionalModerator returns true.
Gerry