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

| |
[borland eco 技术]eco中expressionhandle使用嵌套在DATAGRID中显示数据(转外文) 软件技术
吕向阳 发表于 2008/2/28 21:08:24 |
Jan Nordén [ Borland ]
Here is some information on nestings that I wrote in another context.
May be of use to someone. IMHO nestings are not all that useful in the winforms grid, but if there are third party treeviews or report generators that support them, they may come in handy.
I will try to explain in informally, using how it is displayed in the default grid for illustration.
To start of, the handles render the input |
|
[borland eco 技术]ECO数据在GRIDCONTROL中的动态加列显示 软件技术
吕向阳 发表于 2008/2/26 8:39:11 |
下面代码解决了三个问题,主要目的是动态建立数据列,并在XTRAGIRD(GRIDCONTROL)中动态加相应显示列,并不显示0值(不显示零值)
procedure formcxbmin.getdatacolumn; type TArrayOfBorland_Eco_Handles_OclVariable = array of Borland.Eco.Handles.OclVariable; TArrayOfSystem_Windows_Forms_MenuItem = array of System.Windows.Forms.MenuItem; TArrayOfDevExpress_XtraGrid_Views_Base_BaseView = array of DevExpress.XtraGrid.Views.Base.BaseView; TArrayOfDevExpress_XtraGrid_Columns_GridColumn = array of DevExpress |
|
[borland eco 技术]ECO中经常遇到的几个错误 软件技术
吕向阳 发表于 2008/2/12 17:08:18 |
1.Object reference not set to an instance of an object.
这种情况通常出现在存在关联关系的类,比如一对多,一对一等,比如A类与B类,A类与B类是一对多的关系,我们能常使用这样的语句建立两类之间的关联
b.a:=(a的实例)
如果B类的一个实例没有相对应的A类关联,那么我们使用B.A调用时就会出现这种错误,此时在使用前在一个assigned判定,判定其是否存在
2.出现类似的SQL错误
Borland.Eco.Persistence.Connection.DatabaseOperationFailedException: ExecSQL error: INSERT INTO ECOModelR |
|
[devexpress相关控件]devexpress的gridcontrol中可编辑按钮响应事件 软件技术
吕向阳 发表于 2008/2/10 17:11:32 |
在gridcontrol中将要编辑的字段columeedit改为RepositoryItemButtonEdit1,然后在程序中加入一段按钮事件,
procedure TWinForm.buttonclicks(sender: tobject; e: buttonpressedeventargs); begin messagebox.show('ok'); end;
关键是事件代码里的参数要设置正确,在窗体启动事件中加入代码
include( Self.RepositoryItemButtonEdit1.ButtonClick, ButtonClicks);将事件与按钮进行相应关联,即可 |
|
[borland eco 技术]有关ECO中一对一关系的测试 软件技术
吕向阳 发表于 2008/2/10 16:03:57 |
项目中有一个一对一的关系,不是原来常用的一对多的关系,只好先测试一下,环境BDS2006,首选加入两个类,AAA 和BBB,并设置其为一对一的关系,在一对一关系中,在关系中BBB这一端的聚合里设置为COMPOSITE,那么删除AAA时,其拥有的BBB也被删除.
测试在一个按钮中进行,测试利用下面代码:
var a:aaa; b:bbb; begin a:=aaa.Create(fecospace); a.name:='a01';
b:=BBB.Create(FECOSPACE); B.name:='B01'; A.bbb:=B;
b:=BBB.Create(FECOSPACE); B.name:='B02'; A.bbb:=B;
FECOSPACE.UpdateDatabase;
最 |
|
天涯股市论谈快读新版 软件技术
吕向阳 发表于 2008/1/31 16:36:33 |
重新花了一下午,改进了新先的看贴,可以随时收藏最新热贴,只看楼主
点击下载 欢迎下载使用, |
|
|