论坛


2011年1月3日 星期一

学用 ASP.Net 之 System.DateTime 结构

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

成员:/* 字段 */ DateTime.MaxValue; //9999/12/31 23:59:59 DateTime.MinValue; //0001/01/01 00:00:00 /* 静态属性 */ DateTime.Now; //当前日期和时间 DateTime.Today; //当前日期 DateTime.UtcNow; //当前日期和时间(UTC) /* 静态方法 */ DateTime.Compare...

学用 ASP.Net 之 System.Math 类

万一| 万一的 Delphi 博客 |14:58:00

成员:/* 常量字段 */ Math.E; //2.71828182845905 Math.PI; //3.14159265358979 /* 静态方法 */ Math.Abs; //绝对值 Math.Acos; //反余弦 Math.Asin; //反正弦 Math.Atan; //反正切 Math.Atan2; ...

学用 ASP.Net 之 System.Random 类

万一| 万一的 Delphi 博客 |10:49:00

成员:Next(); //获取 0 .. int.MaxValue 的 int 随机数; 可指定范围 NextBytes(); //获取 0 .. 255 的随机数并填充字节数组 NextDouble(); //获取 0 .. 1 的 double 随机数构造函数://不指定随机种子, 则默认有系统时钟生成种子 protected void Button1_Click...

Delphi Labs: DataSnap XE - Simple Calculator Service

Embarcadero| CodeCentral Delphi Submissions |07:01:38

This is the source code for the EDN article "Delphi Labs: DataSnap XE - Simple Calculator Service".We are using Delphi XE to build simple calculator service for performing basic arithmetic operations like add, subtract, multiply ...

Add a Standard Context (popup) Menu to Delphi’s TRichEdit

About.com| About.com Delphi Programming |02:00:49

inTRichEdit::Delphi's implementation of the rich editor control (TRichEdit) does *not* expose the default context popup menu when the rich edit is right-clicked.Read thefull articleto learn how toImplement Add a Standard Context (popup) Menu to De...