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

| |
[borland eco 技术]delphi 8中使用eco建模验初体 软件技术
吕向阳 发表于 2005/7/26 23:57:27 |
在天极网一篇教程的指导下,一个晚上初步弄清了eco的工作流程,下面是网址:
http://www.yesky.com/SoftChannel/72342371928440832/20041213/1887356.shtml
体会是功能实在强大,建模确实方便,我想这将是delphi 以后能立足的重点发展方向.
唯一的感觉是相关的资料太少了,我在网上试着找了一个,还是找到了一个好东西,是陈省写的<<基于eco的uml模型驱动的数据库应用开发>>,是c#版的,但是在delphi下还是有很好的参考作用,研究了一个晚上,开发的基本流程算是有点大概了,但是如何深入下去,又是个问题.
近期打算用这个东西试着编个小应用程序试看看.另外看到delphi 8在ECO还是有些问题,我更改了一个 association控件的属性,再进行编译时反复出错,即使改回原处也无法正常.
为自己以后使用方便一点,将一些常用代码复制到下面:增加和删除一行的操作.
procedure TWinForm.TWinForm_Closing(sender: System.Object; e: System.ComponentModel.CancelEventArgs);begin ecospace.UpdateDatabase(); //关闭退出时保存记录end;
procedure TWinForm.btndel_Click(sender: System.Object; e: System.EventArgs);begin//if (dgperson.CurrentRowIndex<>-1) then //删除一行ehperson.Element.GetAsCollection().RemoveAt(dgperson.CurrentRowIndex); end;
procedure TWinForm.btnadd_Click(sender: System.Object; e: System.EventArgs);begin person.Create(ecospace); //增加一行end; |
|
|