如何在DELPHI的执行程序中接收外部参数的问题.(100分)

  • 主题发起人 yaningou
  • 开始时间
Y

yaningou

Unregistered / Unconfirmed
GUEST, unregistred user!
现在我要在delphi中编一个小程序.然后在PB中调用。
现我需在PB调用该小程序并且将PB中的一个变量传入该小程序,
那么我能否在该小程序中设定参数接收部分,该如何设定?
(是在project还是在unit中进行说明)。望举例说明,不甚感激!
 
program Para;

uses
Forms;

{$R *.RES}
Var
Str:String;
i:Integer;
begin
Application.Initialize;
Application.Run;
Str:=VarToStr(ParamCount);
Application.MessageBox(Pchar(Str),'Test',0);
For i:=0 to ParamCount-1 do
Begin
Application.MessageBox(Param,'Test',0);
End;
end.
 
顶部