你没有书可看吗?,每一本讲基础的书都会提到这个。
procedure MyMessageBox(Msg:String;Caption:String = 'warning';Flag:LongInt  =mb_OK or mb_IconHand);
begin
     Application.MessageBox(PChar(Msg),PChar(Caption),Flags);
end;你知道可以如何调用该过程吧。.带有缺省值的参数必须位于参数列表的尾部。
.缺省值必须是常数。
.必须作为具体值或常量传递,Var不能作为缺省参数
.不要同时使用缺省参数和重载。