摘要: Delphi数据类型与各数据库数据类型对比如下表,如有具体说明见表中脚注: Delphi Type Oracle Types SQL Server Types MySQL Types [1] InterBase Types PostgreSQL Types SQLite Types ftSmalli 阅读全文
posted @ 2018-11-13 13:56 Thenext 阅读(794) 评论(0) 推荐(0)
摘要: procedure TForm1.cxVerticalGrid1Edited(Sender: TObject; ARowProperties: TcxCustomEditorRowProperties);begin if Assigned(cxVerticalGrid1.InplaceEditor) 阅读全文
posted @ 2018-11-09 15:58 Thenext 阅读(293) 评论(0) 推荐(0)
摘要: 备份并新建同名数据库,并替换原数据文件 1 把问题数据库备份后直接删除 停掉SQLSERVER服务,把服务器上出问题的数据库, 假设名称为 test的数据库文件及日志文件备份到其他目录,然后直接将其删除,把其数据库文件及日志文件也删除 2 新建同名数据库 启动SQLSERVER服务,新建同名数据库t 阅读全文
posted @ 2018-11-06 16:21 Thenext 阅读(772) 评论(0) 推荐(0)
摘要: 设置 cxGrid 的某列的 CellMerging 属性可使这一列相同值的单元格合并。 1)cxGridDBTableViewColumn1.Options.CellMerging:=true 2)编写代码procedure TfrmYFCOPR01A.cxGrid1DBBandedTableVi 阅读全文
posted @ 2018-11-05 13:53 Thenext 阅读(382) 评论(0) 推荐(0)
摘要: OptionsBehavior.GoToNextCellOnEnter:=True; 更完善的回车 可以在焦点到了最后一列再回车时有下一行则移到下一行的第一列,没有下一行则新增记录并移到第一列 阅读全文
posted @ 2018-10-18 17:17 Thenext 阅读(258) 评论(0) 推荐(0)
摘要: 1、选中cxgridview,在属性中找OptionsView >ColumAutoWidth,把这个属性设为True; 2、在FDMemtable的open之后加上如下代码即可 [delphi] view plain copyfor i := 0 to cxGridView1.ColumnCoun 阅读全文
posted @ 2018-10-15 13:48 Thenext 阅读(501) 评论(0) 推荐(0)
摘要: HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\18.0\Known IDE Packages $(BDS)\Bin\CommunityToolbar240.bpl Embarcadero Community Toolbar Package 修改为_Embarc 阅读全文
posted @ 2018-10-12 20:18 Thenext 阅读(352) 评论(0) 推荐(0)
摘要: DATASNAP远程方法返回TSTREAM正解 DATASNAP远程方法返回TSTREAM,如果数据大小超过32K是会报错的。许多DELPHIER栽在这个上头,甚至开始怀疑TSTREAM返回数据的可行性。 因为DATASNAP远程方法返回TSTREAM,数据包大小有最大32K限制。 怎么解决?客户端 阅读全文
posted @ 2018-10-12 20:00 Thenext 阅读(418) 评论(0) 推荐(0)
摘要: project - options - version info lable改成中文名字就可以了 阅读全文
posted @ 2018-10-09 07:52 Thenext 阅读(106) 评论(0) 推荐(0)
摘要: var aParams: TParams; aPar: TParam; I:Integer; begin aParams := TParams.Create(nil); aPar := aParams.CreateParam(ftVarBytes, '数据表1', ptInput); aPar.AsString:='aaaaa' ; aPar := aParams.CreateParam... 阅读全文
posted @ 2018-10-08 17:13 Thenext 阅读(206) 评论(0) 推荐(0)