上一页 1 ··· 200 201 202 203 204 205 206 207 208 ··· 215 下一页
摘要: //类单元 unit Person; interface uses Dialogs; type TPerson = class(TObject) private FName: string; FAge: Integer; public constructor Create(strName: string; intAge: Integer); d... 阅读全文
posted @ 2007-12-13 15:15 万一 阅读(5493) 评论(8) 推荐(0) 编辑
摘要: //类单元 unit NumBox; interface type TNumBox = class private FCount: Integer; public procedure AddOne; procedure AddFive; procedure ZeroCount; function GetCount: Integer; e... 阅读全文
posted @ 2007-12-13 13:56 万一 阅读(4078) 评论(21) 推荐(0) 编辑
摘要: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2: TButton... 阅读全文
posted @ 2007-12-13 12:54 万一 阅读(5797) 评论(8) 推荐(0) 编辑
摘要: uses WinSock; function LocalIP: String; type TaPInAddr = Array[0..10] of PInAddr; PaPInAddr = ^TaPInAddr; var phe: PHostEnt; pptr: PaPInAddr; Buffer: Array[0..63] of AnsiChar; i: Integ... 阅读全文
posted @ 2007-12-13 02:19 万一 阅读(4622) 评论(2) 推荐(0) 编辑
摘要: //查找一个文件 FileSearch var FileName,Dir,s: string; begin FileName := 'notepad.exe'; Dir := 'c:\windows'; s := FileSearch(FileName,Dir); if s'' then ShowMessage(s) //c:\windows\notepad.ex... 阅读全文
posted @ 2007-12-12 17:22 万一 阅读(5952) 评论(3) 推荐(1) 编辑
摘要: //判断文件是否存在 FileExists var f: string; begin f := 'c:\temp\test.txt'; if not FileExists(f) then begin //如果文件不存在 end; end; //判断文件夹是否存在 DirectoryExists var dir: string; begin dir := '... 阅读全文
posted @ 2007-12-12 13:05 万一 阅读(8113) 评论(9) 推荐(3) 编辑
摘要: 元素表:http://demo.yanue.net/HTML5element/移除的元素 纯表现的元素:basefont,big,center,font, s,strike,tt,u; 对可用性产生负面影响的元素:frame,frameset,noframes; 产生混淆的元素:acronym... 阅读全文
posted @ 2007-12-12 11:06 万一 阅读(3879) 评论(1) 推荐(0) 编辑
摘要: function TColorToHex(Color: TColor): string; begin Result := IntToHex(GetRValue(Color), 2) + IntToHex(GetGValue(Color), 2) + IntToHex(GetBValue(Color), 2); end; function HexToTColor(sC... 阅读全文
posted @ 2007-12-12 02:43 万一 阅读(3184) 评论(7) 推荐(1) 编辑
摘要: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button... 阅读全文
posted @ 2007-12-12 02:22 万一 阅读(3666) 评论(2) 推荐(0) 编辑
摘要: var s: string; begin s := 'DelPhi'; ShowMessage(s[4]); //P s[4] := 'p'; ShowMessage(s); //Delphi end; 阅读全文
posted @ 2007-12-12 01:14 万一 阅读(3254) 评论(0) 推荐(0) 编辑
上一页 1 ··· 200 201 202 203 204 205 206 207 208 ··· 215 下一页