本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告
================

注会练习软件
http://www.cpasoft.com.cn
我的注会软件官网

http://blog.163.com/abc7105@126/

 

 


哈哈,热爱快“过气”的DELPHI


我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:注册会计师(注会)练习软件
日志总数:398
评论数量:116
留言数量:27
访问次数:3266114
建立时间:2005年6月6日




[delpih编程]在aspx中调用delphi.net函数(eco编程)
软件技术

吕向阳 发表于 2009/3/15 11:07:17

ECO做网页时,运用到ASPX中调用DELPHI中的函数,其格式如下: ** ">产品一 其中(1)为调用的格式,其应该在外面的“”里面 (2)不要用,函数用=号 getid函数的功能,根据自己标定的文章的顺序号,取得其ECO的内生ID号,运用到一个服务: IExternalIdService,这个服务的引用单元是borland.eco.Services, 具体实现如下: function ttop.getid(sxh: integer): string; var anews: news; ies: IExternalIdService; begin result := ''; ehnews.Expression := 'news.allInstances->select(sxh=' + sxh.ToString.Trim + ')'; if ehnews.Element.GetAsCollection.Count > 0 then begin anews := ehnews.element.GetAsCollection()[0].asobject as news; ies := EcoSpace.GetEcoService(typeof(IExternalIdService)) as IExternalIdService; result := ies.IdForObject(anews.AsIObject()); end; end;


阅读全文(940) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.262 second(s), page refreshed 144781723 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号