Reputation: 89
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
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