开发者

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
 开发者_JAVA技巧       RESULT := frmCI;
end;


@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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜