论坛


2009年10月13日 星期二

关于 class helper for ... 语法

万一| 万一的 Delphi 博客 |21:33:00

class helper 可能是从 Delphi 2007 增加的新语法, 因为感觉不太实用, 直到今天才测试了一下.试过之后才知道: 挺有意思的! 基本功能就是修改已存在的类.Txxx = class helper for T... {T... 表示已存在的类} {可以替换已存在的方法} {也可以有新的方法、成员} en...

简体中文与繁体中文的转换函数

万一| 万一的 Delphi 博客 |13:54:00

unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); end; var Form1: TF...

Override the TMaskEdit’s Internal "Invalid Input Value. Use Escape Key to Abandon Changes" Error in Delphi

About.com| About.com Delphi Programming |01:00:42

Delphi TIPS :: When developing database applications using Delphi, if you are using the EditMask property of a TField object to restrict the data that can be entered into a...