摘要: 颜色名称 颜色效果 HexHTML clBlack $000000 #000000 clMaroon $000080 #800000 clGreen $008000 #008000 clOlive $008080 #808000 clNavy $800000 #000080 clPurple $800080 #800080 clTe... 阅读全文
posted @ 2018-12-26 16:32 Thenext 阅读(771) 评论(0) 推荐(0)
摘要: 对象类型: AF = 聚合函数 (CLR) C = CHECK 约束 D = DEFAULT(约束或独立) F = FOREIGN KEY 约束 FN = SQL 标量函数 FS = 程序集 (CLR) 标量函数 FT = 程序集 (CLR) 表值函数 IF = SQL 内联表值函数 IT = 内部 阅读全文
posted @ 2018-12-01 08:54 Thenext 阅读(419) 评论(0) 推荐(0)
摘要: delphi中有直接把10进制转换成16进制的函数: function IntToHex(Value: Integer; Digits: Integer): string; overload; function IntToHex(Value: Int64; Digits: Integer): str 阅读全文
posted @ 2018-11-21 11:00 Thenext 阅读(324) 评论(0) 推荐(0)
摘要: 如果要使用LeftStr,RightStr,MidStr必需引用系统单元StrUtils; 声明变量Str:string; Str:=HelloWorld; 1,LeftStr(Str,2)=He;//从Str字符串变量的最左边(第一个字符包括第一个字符)开始截取2个字符; 2,RightStr(S 阅读全文
posted @ 2018-11-21 10:55 Thenext 阅读(491) 评论(0) 推荐(0)
摘要: 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 阅读(806) 评论(0) 推荐(0)
摘要: procedure TForm1.cxVerticalGrid1Edited(Sender: TObject; ARowProperties: TcxCustomEditorRowProperties);begin if Assigned(cxVerticalGrid1.InplaceEditor) 阅读全文
posted @ 2018-11-09 15:58 Thenext 阅读(315) 评论(0) 推荐(0)
摘要: 备份并新建同名数据库,并替换原数据文件 1 把问题数据库备份后直接删除 停掉SQLSERVER服务,把服务器上出问题的数据库, 假设名称为 test的数据库文件及日志文件备份到其他目录,然后直接将其删除,把其数据库文件及日志文件也删除 2 新建同名数据库 启动SQLSERVER服务,新建同名数据库t 阅读全文
posted @ 2018-11-06 16:21 Thenext 阅读(781) 评论(0) 推荐(0)
摘要: 设置 cxGrid 的某列的 CellMerging 属性可使这一列相同值的单元格合并。 1)cxGridDBTableViewColumn1.Options.CellMerging:=true 2)编写代码procedure TfrmYFCOPR01A.cxGrid1DBBandedTableVi 阅读全文
posted @ 2018-11-05 13:53 Thenext 阅读(393) 评论(0) 推荐(0)
摘要: OptionsBehavior.GoToNextCellOnEnter:=True; 更完善的回车 可以在焦点到了最后一列再回车时有下一行则移到下一行的第一列,没有下一行则新增记录并移到第一列 阅读全文
posted @ 2018-10-18 17:17 Thenext 阅读(271) 评论(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 阅读(509) 评论(0) 推荐(0)