随笔分类 -  Delphi

上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要:1 var 2 aStream: TMemoryStream; 3 LDataSet: TFDDataSet; // 申请一个FD数据集 4 MyStream: Tmemorystream; 5 MyJPEG: TJpegImage; 6 MyPng: TPngImage; 7 begin 8 in 阅读全文
posted @ 2022-06-29 09:19 Thenext 阅读(168) 评论(0) 推荐(0)
摘要:Delphi TField.ProviderFlags 属性 单元:DB 说明:指定应用更新时提供程序如何使用字段值。 语法: 1 property ProviderFlags: TProviderFlags; 描述:ProviderFlags仅与提供给提供程序组件抯事件处理程序的数据包中出现的字段 阅读全文
posted @ 2022-06-22 21:21 Thenext 阅读(163) 评论(0) 推荐(0)
摘要:req := CoXMLHTTP.Create; try req.open('Post', szUrl, False, EmptyParam, EmptyParam); //设置post必要参数 req.setRequestHeader('UserAgent','Mozilla/5.0'); req 阅读全文
posted @ 2022-05-24 16:52 Thenext 阅读(80) 评论(0) 推荐(0)
摘要:frxBarcod, frxBarcode2D; 这个是添加了二维码造成的。引用相应的单元就可以了。 增加这个控件frxBarCodeObject 阅读全文
posted @ 2022-04-27 14:24 Thenext 阅读(588) 评论(0) 推荐(0)
摘要:DataContoller中的函数FocusedRecordIndex没有反应,FocusedRowIndex正常。 cxgrdtvGrid1DBTableView1.DataController.FocusedRecordIndex := 0; //定位到第一行,排序过滤无反应 cxgrdtvGr 阅读全文
posted @ 2022-04-23 14:35 Thenext 阅读(468) 评论(1) 推荐(0)
摘要:OptionsBehavior.PullFocusing =True。 执行多选。 with cxGrid1DBTableView1 do begin for i := 0 to Controller.SelectedROwCount - 1 do begin Controller.FocusedR 阅读全文
posted @ 2022-04-21 16:13 Thenext 阅读(256) 评论(0) 推荐(0)
摘要:FireMonkey App Low Code Wizard 1.0 from May 26, 2021Create a new fully-functional Delphi mobile application with multiple screens using the Low Code W 阅读全文
posted @ 2022-04-07 13:37 Thenext 阅读(219) 评论(0) 推荐(0)
摘要:fdquery有个属性,FormatOptions.DefaultParamDataType=ftUnknow,默认是ftUnknown,改为ftString就好了, 阅读全文
posted @ 2022-04-04 11:20 Thenext 阅读(134) 评论(0) 推荐(0)
摘要:Delphi提供了一个TInifile类,使我们可以非常灵活的处理INI文件 一.INI文件的结构[小节名]ini文件 关键字1=值1 关键子2=值2INI文件允许有多个小节,每个小节又允许有多个关键字,“=”后面是该关键字的值。值的类型有三种:字符串、整型数值和布尔值。其中字符串存贮在INI文件中 阅读全文
posted @ 2022-03-26 11:51 Thenext 阅读(308) 评论(0) 推荐(0)
摘要:var StartTime, EndTime: cardinal; begin StartTime := GetTickCount; sleep(1000); EndTime := GetTickCount; caption := (IntToStr(EndTime - StartTime) + ' 阅读全文
posted @ 2022-03-26 09:08 Thenext 阅读(379) 评论(0) 推荐(0)
摘要:0 I have the following C# code that works, ie. I get the expected result from the server. static async Task GetObjectInfo() { HttpClient httpClient = 阅读全文
posted @ 2022-03-25 17:31 Thenext 阅读(332) 评论(0) 推荐(0)
摘要:1、对于使用TCP/IP链接的客户端应用程序,是具有状态的。一直等到客户端完成服务请求后释放配置的资源。如何掉线了,那么服务器就是傻傻地等着,可能导致资源耗尽。 如何在服务端选择一个链接切断关闭之: 2、KeepAlive功能 实现DataSnap服务器和DataSnap客户端互相查询的功能。 如果 阅读全文
posted @ 2022-03-25 13:52 Thenext 阅读(183) 评论(0) 推荐(0)
摘要:用法1:在工程中加入控件cxLocalizer; 在程序中加入如下语句: Localizer.LoadFromFile(‘DevLocal.ini‘); Localizer.Language := '中文(简体,中国)'; Localizer.Active := true; 用法2:用DevExpr 阅读全文
posted @ 2022-03-19 09:24 Thenext 阅读(627) 评论(0) 推荐(0)
摘要:cxSplitter1.CloseSplitter; //收缩 cxSplitter1.OpenSplitter; //展开 阅读全文
posted @ 2022-03-11 15:31 Thenext 阅读(174) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 10 下一页