摘要: 引用来源:https://blog.csdn.net/knityster/article/details/2313453 阅读全文
posted @ 2021-01-15 21:05 此木为柴 阅读(126) 评论(0) 推荐(0)
摘要: delphi DriveComboBox、DirectoryListBox、FileListBox三个控件联动:1、DriveComboBox控件的属性DirList上绑定DirectoryListBox控件2、DirecoryListBox控件的属性FileList上绑定FileListBox控件 阅读全文
posted @ 2021-01-15 17:28 此木为柴 阅读(766) 评论(0) 推荐(0)
摘要: sqlserver 查询链接服务器中的数据时,不能省略dbo,如下:1、[u8erp].ufsystem.dbo.UA_Period 可以正常访问2、[u8erp].ufsystem..UA_Period 报错:为链接服务器 "u8erp" 的访问接口 "SQLNCLI11" 指定了无效的架构或目录 阅读全文
posted @ 2021-01-15 17:27 此木为柴 阅读(319) 评论(0) 推荐(0)
摘要: 1、如果给存储过程指定了默认值,则调用存储过程时,默认值可以不传。2、如果给自定义函数指定了默认值,则调用该自定义函数时,如果要用默认值,需在参数位传入default关键字,否则会报参数数目不匹配的错误。 阅读全文
posted @ 2021-01-15 17:23 此木为柴 阅读(760) 评论(0) 推荐(0)
摘要: delphi 创建DCOM应用服务器程序, view—type library 弹出 project1.tlb对话框,添加新的方法、属性等后,点击上面的刷新按钮, 按F12或点击delphi开发工具面板上的 toggle form/unit 按钮,切换到project1_tlb.pas代码编辑窗口, 阅读全文
posted @ 2021-01-15 17:22 此木为柴 阅读(150) 评论(0) 推荐(0)
摘要: delphi中 CLX Application 是指跨平台的应用:VCL-Visual Component Library 可视组件库CLX-Component Library for Cross Platform 跨平台组件库 引用来源:https://wenku.baidu.com/view/f 阅读全文
posted @ 2021-01-15 17:20 此木为柴 阅读(213) 评论(0) 推荐(0)
摘要: delphi 创建DCOM应用服务器程序,tlb中要定义function函数的话,参数的标识要勾选out、retval。否则默认是创建的procedure过程。 阅读全文
posted @ 2021-01-15 17:18 此木为柴 阅读(96) 评论(0) 推荐(0)
摘要: 引用来源:https://www.cnblogs.com/itjeff/p/3441187.html 阅读全文
posted @ 2021-01-15 17:16 此木为柴 阅读(158) 评论(0) 推荐(0)
摘要: uses winsock; ①获取本机机器名称: procedure TForm1.BitBtn1Click(Sender: TObject); var wsData:twsadata; hname:string; aname:array[0..100] of Char; begin WSAStar 阅读全文
posted @ 2021-01-15 17:14 此木为柴 阅读(260) 评论(0) 推荐(0)
摘要: 引用来源:https://www.cnblogs.com/del/archive/2007/12/05/983657.html 阅读全文
posted @ 2021-01-15 17:13 此木为柴 阅读(76) 评论(0) 推荐(0)
摘要: 引用来源:https://www.cnblogs.com/del/archive/2008/01/15/1039998.html 阅读全文
posted @ 2021-01-15 17:11 此木为柴 阅读(186) 评论(0) 推荐(0)
摘要: 引用来源:https://www.jb51.net/article/52395.htm?pc 注:inherited关键字,用在子类中调用父类的实现。1、如果调用的是过程,可以在方法/过程体内,采用 "inherited 过程名;" 的形式调用。如 inherited;或inherited MyPr 阅读全文
posted @ 2021-01-15 17:08 此木为柴 阅读(152) 评论(0) 推荐(0)
摘要: 引用来源:https://www.cnblogs.com/del/archive/2007/12/05/984509.html 打开To Do 注释列表:菜单-view-to_do list 阅读全文
posted @ 2021-01-15 17:01 此木为柴 阅读(98) 评论(0) 推荐(0)
摘要: procedure TForm1.BitBtn1Click(Sender: TObject); var i:Integer; begin asm mov i,77h end; ShowMessage(IntToStr(i));//119 end; 内嵌的汇编代码用 asm……end; 代码块包裹。 阅读全文
posted @ 2021-01-15 16:59 此木为柴 阅读(104) 评论(0) 推荐(0)
摘要: 菜单-view-browser 快捷键 ctrl+shift+b 阅读全文
posted @ 2021-01-15 16:57 此木为柴 阅读(132) 评论(0) 推荐(0)
摘要: 在delphi7中,默认string就是AnsiString,能用编译开关$ H来将string类型定义为AnsiString或ShortString, 当$ H编译开关的值为负时,string是ShortString类型; 当$ H编译开关的值为正时(缺省情况),string是AnsiString 阅读全文
posted @ 2021-01-15 16:55 此木为柴 阅读(1152) 评论(0) 推荐(0)
摘要: 引用来源:http://www.360doc.com/content/12/0320/15/7389824_195972415.shtml //上传 procedure TForm1.BitBtn1Click(Sender: TObject); var fname:string; begin if 阅读全文
posted @ 2021-01-15 16:51 此木为柴 阅读(544) 评论(0) 推荐(0)
摘要: delphi 中的异常处理结构有两种: 1、try……except结构2、try……finally结构没有像java等其他语言中那样 try ……catch……finally 的结构。另外 try后面可以跟单条语句,也可以跟复合语句,不用加begin……end包裹。而 except 后面的do语句, 阅读全文
posted @ 2021-01-15 16:48 此木为柴 阅读(525) 评论(0) 推荐(0)
摘要: procedure TForm1.BitBtn3Click(Sender: TObject); var path:array[0..255] of Char; begin GetTempPath(255,@path); ShowMessage(path); end; 阅读全文
posted @ 2021-01-15 16:44 此木为柴 阅读(382) 评论(0) 推荐(0)
摘要: 经测试在设计期,如果取消选择会报错,但是执行编译好的exe文件,不会报错。 软件编写的三个时期:设计期,编译期,运行期 阅读全文
posted @ 2021-01-15 16:42 此木为柴 阅读(478) 评论(0) 推荐(0)
摘要: delphi DevExpress 系列控件,cx系列是比dx系列更新的版本。经测试TcxTreeList控件可以实现U9中表格单元格内按钮选择的功能。在cxTreeList控件上右击,columns,add添加一个column,然后选中该column对象,其properties属性可以指定该列单元 阅读全文
posted @ 2021-01-15 16:38 此木为柴 阅读(529) 评论(0) 推荐(0)
摘要: 方法一:暴力修改(不推荐) 例:DevExpress 系列控件之cxgrid的filterControl控件汉化步骤: 引用来源: http://www.myexceptions.net/delphi/830363.html 方法二:DevExpress控件设置 引用来源:https://blog. 阅读全文
posted @ 2021-01-15 16:36 此木为柴 阅读(606) 评论(0) 推荐(0)
摘要: 1 --查询表的字段说明 2 --use dataname 数据库名 3 SELECT t.[name] AS 表名,c.[name] AS 字段名,cast(ep.[value] 4 as varchar(100)) AS [字段说明] 5 FROM sys.tables AS t 6 INNER 阅读全文
posted @ 2021-01-15 16:28 此木为柴 阅读(1575) 评论(0) 推荐(0)
摘要: delphi 中数据类型 HWND,UINT,LongWord,Cardinal,THandle 似乎是等同的。待后续重复测试。 阅读全文
posted @ 2021-01-15 16:25 此木为柴 阅读(250) 评论(0) 推荐(0)
摘要: 对于指针类型的Char,Delphi中有PChar, PWideChar, pAnsiChar三种数据类型在 Delphi2010 之前,默认PChar是PAnsiChar,和string,AnsiString,WideString 类似,Wide前缀的和其他语言中的是类似的。当然Char,Ansi 阅读全文
posted @ 2021-01-15 16:15 此木为柴 阅读(1416) 评论(0) 推荐(0)
摘要: 参考万一老师的blog: https://www.cnblogs.com/del/archive/2007/12/07/986020.html 注:external 后面要不要跟name关键字,在于函数/过程名是否和dll定义文件中的函数/过程名一致。如果不一致,则需用name关键字,相当于在使用单 阅读全文
posted @ 2021-01-15 16:08 此木为柴 阅读(158) 评论(0) 推荐(0)
摘要: 一个在线查询windows api 函数的网址:http://www.office-cn.net/t/api/api_content.htm 阅读全文
posted @ 2021-01-15 16:04 此木为柴 阅读(1805) 评论(0) 推荐(0)
摘要: 1 unit Unit1; 2 3 interface 4 5 uses 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 Dialogs, StdCtrls, Buttons; 8 9 ty 阅读全文
posted @ 2021-01-15 15:58 此木为柴 阅读(156) 评论(0) 推荐(0)