MSSQL IsNull

SQL Server IsNull 去除NULL函数

在使用MS SQL Server查询字段值的时候,经常会遇到空值字段或者无值字段。 即 字段内容 = '' 或者字段内容 = NULL A = NULL B = '' 但是,它们的含义是不一样的,在查询的时候一定要注意。 好在MSSQL提供了一个内置函数ISNULL,利用它可以筛选出NULL值字段 — 删除所有为Read More…

Delphi 截屏控件

unit ALScreenSnap; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ShellAPI; type TALScreenSnap = class(TComponent) private OldWndProc, NewWndProc: Pointer; fActive: Boolean; fThreshold: Integer; procedure NewWndMethod(var Msg: TMessage); public constructor Create(AOwner: TCRead More…

cxGrid 显示行号及行号列列名

cxGrid默认不显示行号,但是可以通过cxGrid1DBTableView1CustomDrawIndicatorCell事件来重绘行号 选中cxGrid1DBTableView1,在OnCustomDrawIndicatorCell事件中,输入以下代码: procedure TForm1.cxGrid1DBTableView1CustomDrawIndicatorCell( Sender: TcxGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxCustomGridIndicatorItemViewInfo; var ADone: Boolean);Read More…

CWMFoundation – Algorithm

CWMFoundation 意为 Charlie.Wang Foundation Mini(迷你版) 是作者工作中为方便代码编写,逐渐整理归档的一些代码集。 在原有CWFoundation的基础上,去除了大量窗体上的控件,只留下一个Delphi Pas文件的轻量级类。 Algorithm是用来存放算法的类。 //*********************************** //***** CWMFoundatRead More…

CWMFoundation – Keyboard

CWMFoundation 意为 Charlie.Wang Foundation Mini(迷你版) 是作者工作中为方便代码编写,逐渐整理归档的一些代码集。 在原有CWFoundation的基础上,去除了大量窗体上的控件,只留下一个Delphi Pas文件的轻量级类。 Keyboard主要用来处理按键,节约代码输入的时间。 //*****************************Read More…