当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 如何写出象TTable, TAdoTable ,Tquery,T
 

 

    摘要:unit yaohaoqiu;interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, spin;type tform1 = class(tform) button1: tbutton; spinedit1: tspinedit; spine......
 ·bpl和dll文件的区别[翻译]     »显示摘要«
    摘要:[原文] that is correct. a bpl is a dll. (but not all dlls are bpls.) > but i still found some different, such as that i can create a > object from the host exe and that pass to a bpl and modify it......


VCL(四) 如何写出象TTable, TAdoTable ,Tquery,TAdoQuery 等控件一样的自动下拉显示Field属性

如何写出象ttable, tadotable ,tquery,tadoquery 等控件一样的自动下拉显示field属性

delphi vcl在delphi 中有很多源码,但是有些关键的属性编辑器却找不到,下面我将举几个例子来说明一下 【程序编程相关:一个很实用的Ehlib排序函数,适合AD

【推荐阅读:DBGrid中用光标键控制Cell

我们可以研究一下tdbedit的两个关键属性一个datasource,datafield. 【扩展信息:MSN / QQ 中的动画表情 在Del

示例如下

ttestcontrol=class(twincontrol)

 private 

    fdatalink: tfielddatalink; //定义一个存储字段的属性

 

    function getdatafield: string;

    function getdatasource: tdatasource;

    procedure setdatafield(const value: string);

    procedure setdatasource(const value: tdatasource);

 

published 

    //下面说明时要用到

    //property resultfield :string read getdatafield write setdatafield;

 

    property datafield: string read getdatafield write setdatafield;

    property datasource: tdatasource read getdatasource write setdatasource;

end;

//获取字段名

function ttestcontrol.getdatafield: string;

begin

  result := fdatalink.fieldname; //

end;

//获取数据源


...   下一页
 ·delphi操作wrod的几个知识点     »显示摘要«
    摘要://-------------------初始化-------------------- var wapp,work:variant; try wapp:=getactiveoleobject(word.application); except wapp:=createoleobject(word.application); end;//---------------替换字符-----------......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE