http://www.delphibasics.co.uk/RTL.asp?Name=Out http://stackoverflow.com/questions/14507310/whats-the-difference-between-var-and-out-parameters A var parameter will be passed by reference, and that's it. var参数将以引用方式传递. An out parameter is also passed…
程序1 program E1; uses Forms,Dialogs,SysUtils, EndM1 in 'EndM1.pas' {Form2}; {$R *.res} begin Application.Initialize; Application.CreateForm(TForm2, Form2); then begin ShowMessage('缺少参数:'+Inttostr(ParamCount)); Application.Terminate; Exit; end; //在运行时去…