码迷,mamicode.com
首页 > 其他好文 > 详细

EPX-Studio调用Dll模块

时间:2020-03-12 14:17:50      阅读:50      评论:0      收藏:0      [点我收藏+]

标签:his   参数   main   调用   fun   form   cal   root   assigned   

 1 procedure TForm1.BitBtn1Click(Sender: TObject);
 2 var REP : IExcelPanelXDisp;
 3 modulePath:string;
 4 begin
 5   REP := this.NewEPX;
 6   REP.AddAValue(ADOConnection1); //传递参数
 7   REP.AddAValue(Pid);// //传递参数
 8   modulePath := CommandLine.ModuleRoot+\Components\DATABASE.dll;
 9   if this.FileExists(modulePath) then
10   begin
11     REP.CallScriptBuilderComplexFunction(modulePath,Main.rpas,‘‘,False);
12     REP.FreeMe;
13     REP := Unassigned;
14   end
15   else
16   this.Alert(程序模块已丢失,请重新安装!);
17 end;
18 
19 
20 //取的传递参数
21 procedure TForm2.FormShow(Sender: TObject);
22 begin
23   if this.ValuesCount = 2 then
24   begin
25     ado := this.values[0];
26     Pid := this.values[1];
27   end;
28 end;  

 

EPX-Studio调用Dll模块

标签:his   参数   main   调用   fun   form   cal   root   assigned   

原文地址:https://www.cnblogs.com/xenli/p/12468829.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!