上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 所谓"流", 就是一段数据或是一块内存;在进行流操作时, 我们不必关心流中的数据到底是什么; 只需要知道流的大小和当前的指针位置. 所以流只有两个属性:Size、Position.对流的操作, 不过就是读取和写入. 所以流最主要的方法就是 Read 和 Write.在很多控件的使用中, 读取主要用 阅读全文
posted @ 2023-05-13 08:52 lucken 阅读(326) 评论(0) 推荐(0)
摘要: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Bu 阅读全文
posted @ 2023-05-13 08:47 lucken 阅读(50) 评论(0) 推荐(0)
摘要: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Me 阅读全文
posted @ 2023-05-13 08:46 lucken 阅读(56) 评论(0) 推荐(0)
摘要: 1、TStringList 默认以 ','拆分字符 onst constr :String = 'aaa,bbb,ccc,ddd';var strs :TStrings; i :Integer;begin strs := TStringList.Create; strs.CommaText := c 阅读全文
posted @ 2023-05-12 09:16 lucken 阅读(702) 评论(0) 推荐(0)
摘要: //GetLastInputInfo是检测系统输入的,应用到某个程序中不合适! 此问题有二种解法来监控输入消息: 1.用线程级HOOK,钩上MOUSEHOOK与KEYBOARDHOOK 2.在Application.OnMessage中做处理 显然,用第2种方法比较方便! 众所周知,键盘与鼠标消息都 阅读全文
posted @ 2023-05-11 17:14 lucken 阅读(471) 评论(0) 推荐(0)
摘要: 第一部分: 1. 设置ADOConnection的ConnectionString属性的OLE DB的提供者要选择Microsoft Jet 4.0 OLE DB Provider(这本来是用于连接Access数据库的驱动程序,但也可打开Excel文件),按 "下一步"按钮 2. 选择数据库名称。注 阅读全文
posted @ 2023-05-11 17:10 lucken 阅读(450) 评论(0) 推荐(0)
摘要: 1.FastReport中如果访问报表中的对象?可以使用FindObject方法。TfrxMemoView(frxReport1.FindObject(’memo1′)).Text:=’FastReport’; 2.FastReport中如何使用上下标?设置frxmemoview.AllowHTML 阅读全文
posted @ 2023-05-11 17:07 lucken 阅读(335) 评论(0) 推荐(0)
摘要: program Example; uses Sempare.Template; type TInformation = record name: string; favourite_sport : string; count : integer; end; begin var tpl := Temp 阅读全文
posted @ 2023-05-11 17:06 lucken 阅读(47) 评论(0) 推荐(0)
摘要: Close:1.只关闭本窗体2.当Close是一个主窗体时,程序会退出。3.Close会发生FormClose事件,FormCloseQuery事件4.主窗体close以后程序就Application.Terminate了5.子窗体close以后。没释放,还可以Show出来。6.也是说主窗口的Clo 阅读全文
posted @ 2023-05-10 16:47 lucken 阅读(218) 评论(0) 推荐(0)
摘要: cxGrid1DBTableView1.Controller.FocusedRowIndex 当前行号 cxGrid1DBTableView1.Controller.FocusedRow 当前行 cxGrid1DBTableView1.Controller.FocusedColumn 当前列 cxG 阅读全文
posted @ 2023-05-10 16:47 lucken 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页