随笔 - 583  文章 - 0  评论 - 31  阅读 - 90万
11 2020 档案
Delphi - TStringList DelimitedText空格问题
摘要:使用TStringList 的 DelimitedText ,如果被分割字符串中包含空格,被自动分割,这恐怕不是想要的结果,解决办法:用自定义的分割函数! 1 function SplitString(const Source, ch: String): TStringList; 2 var 3 T 阅读全文
posted @ 2020-11-25 11:41 sunylat 阅读(619) 评论(0) 推荐(0) 编辑
Delphi - Application.MessageBox
摘要:Application.MessageBox是TApplication的成员函数,声明如下:functionTApplication.MessageBox(constText,Caption:PChar;Flags:Longint):Integer;引数:1.Text:要显示的信息2.Caption 阅读全文
posted @ 2020-11-14 10:59 sunylat 阅读(392) 评论(0) 推荐(0) 编辑
Delphi - reference to (匿名方法)
摘要:Delphi 2009 可以使用匿名方法了(使用 reference 定义方法类型, 然后在代码中随用随写方法) unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls 阅读全文
posted @ 2020-11-10 17:00 sunylat 阅读(387) 评论(0) 推荐(0) 编辑
Delphi - Record记录和变体记录
摘要:原文地址:https://blog.csdn.net/yt_maomao/article/details/36631133 //Integer类型刚好是4个字节,ShortInt类型是1个字节,但是Windows中内存是4字节分配,//所以这里其实还是4个字节,用SizeOf可以看到这个record 阅读全文
posted @ 2020-11-10 11:50 sunylat 阅读(1550) 评论(0) 推荐(0) 编辑
Delphi - TStringBuilder类
摘要://TStringBuilder.Create 可以无参数 procedure TForm1.Button1Click(Sender: TObject); var sb: TStringBuilder; begin sb := TStringBuilder.Create; sb.Append('Em 阅读全文
posted @ 2020-11-09 18:11 sunylat 阅读(330) 评论(0) 推荐(0) 编辑
Delphi - Format
摘要:1.Format 根据指定所需要的格式,格式化字符串。 原型: function Format(const Format: string; const Args: array of const): string; 例子: var s: string; begin //指令类型 type s := F 阅读全文
posted @ 2020-11-09 13:24 sunylat 阅读(328) 评论(0) 推荐(0) 编辑
Delphi - 如何调试 DLL
摘要:网上看到很多人问delphi中如何调试 DLL 的,众大侠回答也基本一致,但是,我使用时却时灵时不灵,今天发现了原因。 完整的调试 DLL方法如下: 1)新建一个 DLL 工程,名字就叫 MyDll 吧,编译后生成 MyDll.dll,我们要调试的就是它了。 2)新建一个用来调试 MyDll 的 A 阅读全文
posted @ 2020-11-04 20:16 sunylat 阅读(519) 评论(0) 推荐(0) 编辑
Delphi - TStringList 用法详解
摘要:delphi TStringList 用法详解 //TStringList 常用方法与属性 :var List: TStringList; i: Integer;begin List := TStringList.Create; List.Add('Strings1'); {添加} List.Add 阅读全文
posted @ 2020-11-04 15:00 sunylat 阅读(785) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示