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

| |
[borland eco 技术]ECO中利用OclVariables将一个自定义对象作为可在expression中使用的变量 软件技术
吕向阳 发表于 2008/1/19 8:40:38 |
增加referenceHandle, 设置 EcoSpaceType 和StaticTypeName
在代码中作如下设置,将referenceHandle 有element设为你的对象 myRefHandle.SetElement(myObject.AsIObject());
增加一个 OclVariables元件 并进入Variables-collection,增加一行指向你的 referencehandle并给出一个你定义的变量名,比如 "myVar"
在你的 Expressionhandle,设置 Variables属性到你的 OclVariable元件
最后你就在你的 expression可以使用 "myVar" 了
//vhXX.Element.Assign(aPerson.AsIObject), |
|
[borland eco 技术]variableHandle在处理数据集的BUG,开发者解决方案 软件技术
吕向阳 发表于 2008/1/19 8:26:57 |
从开发者论坛搜索出来的,
a bug in the handling of collections in the variableHandle.
rhObjects should be configured as:
EcoSpaceType = VariableHandleDemo.VariableHandleDemoEcoSpace)StaticValueTypeName = "Collection(Test)
and the following code added to the constructor (which does exactly what the variablehandle should be doing):
|
|
[borland eco 技术]delphi.net中关于datagrid网格的回车键跳到下一列处理 软件技术
吕向阳 发表于 2008/1/15 12:38:58 |
网上全是C#资料,转到DELPHI中也大费周章,还好,反复测试还是做出来了.
选给当前表定重载覆盖原有的ProcessCmdKey方法,并且要比原方法的公开方式要高,用PUBLIC,
public function ProcessCmdKey(var msg:Message ;keyData:Keys ):boolean;override;
在这里从C#转换到这里时,VAR这个查了很多相关资料才得来
函数过程如下
function formsale.Pr
ocessCmdKey(var msg: Message; keyData: Keys): boolean; begin
if ( (not (ActiveControl is Button)) and ((keyDat |
|
[borland eco 技术]有关DataGrid中进行输入数据和自动计算的问题 软件技术
吕向阳 发表于 2008/1/14 11:58:26 |
datagrid中当我们处理键盘离开当前单元格后,进行相应的计算时,网上资料如烟,却找不到什么相关的解说,经过查阅,解决案如下,
我的环境上bds2006,delphi.net
Self.DataGridTextBoxColumn2.Alignment := System.Windows.Forms.HorizontalAlignment.Right; Self.DataGridTextBoxColumn2.Format := ''; Self.DataGridTextBoxColumn2.FormatInfo := nil; Self.DataGridTextBoxColumn2.HeaderText := '数量'; Self.DataGridTextBoxColumn2.MappingName := 'quantity'; Self.DataGridTextBoxColumn2.Width := 50;
|
|
advSTRINGGRID加下列列表框combobox 软件技术
吕向阳 发表于 2008/1/2 16:08:18 |
1.advstringgrid的相应事件有两个
========
procedure TForm1.mxgridGetEditorType(Sender: TObject; ACol, ARow: Integer; var AEditor: TEditorType); begin with mxgrid do if ACol = 2 then begin aEditor := edComboList; ClearComboString; ComboBox.Items.Add('bbb'); ComboBox.Items.add('ccc'); |
|
自已写的一个天涯论坛含只看楼主功能的看贴工具 软件技术
吕向阳 发表于 2007/10/27 18:27:18 |
点击下载 欢迎下载使用,
最近炒股,天涯里牛人多啊,但垃圾也多,为了省心,就费了一天的时间做了这么个小东西,感觉够自己用的啦,也不准备花时间了,有需要的朋友来取吧.
股市的高手们都在里面了,我最服的是[愤怒地石头],好好学学里面的理念吧,反正今年在股市里算是小有收益吧, |
|
|