上一页 1 ··· 198 199 200 201 202 203 204 205 206 ··· 215 下一页
摘要: 前言: Delphi 支持三种文件类型: 文本文件、记录文件、无类型文件。 文本文件是以行为单位进行读、写的。由于每一行的长度不一定相同,不能计算出给定行在文件中的确切位置,因而只能顺序地读写。 文本文件只能单独为读或写而打开,在一个打开的文本文件上同时进行读、写操作是不允许的。 文本文件的打开需要两个步骤:1.文件变量与文件名关联;2.初始化读写。 1.文件变量与文件名关联: Ass... 阅读全文
posted @ 2007-12-19 12:06 万一 阅读(15499) 评论(5) 推荐(0) 编辑
摘要: uses ShellAPI; procedure TForm1.AbortClick(Sender: TObject); begin ShellAbout(0, 'MySoft', 'Copyright (c) 2007-2008', Application.Icon.Handle); end; 阅读全文
posted @ 2007-12-19 09:57 万一 阅读(2935) 评论(1) 推荐(0) 编辑
摘要: var s: string; begin //FormatFloat 的参数1是 String 格式指令, 参数2是实数类型 Extended s := FormatFloat('###.###',12.3456); //返回: 12.346 s := FormatFloat('000.000',12.3456); //返回: 012.346 s := Forma... 阅读全文
posted @ 2007-12-19 01:11 万一 阅读(16581) 评论(6) 推荐(1) 编辑
摘要: var s: string; begin //FormatDateTime 的参数1是 String 格式指令, 参数2是 TDateTime 类型的时间 s := FormatDateTime('c', Now); {返回: 2007-12-18 23:56:05} {指令 c 表示用短格式显示日期与时间} s := FormatDateTime('d', Now); ... 阅读全文
posted @ 2007-12-19 00:50 万一 阅读(18654) 评论(5) 推荐(0) 编辑
摘要: var s: string; begin //指令类型 type s := Format('最大整数是: %d; 最小整数是: %d',[MaxInt,Low(Integer)]); //返回: 最大整数是: 2147483647; 最小整数是: -2147483648 { 提示: 格式指令必须以 % 开始, 不区分大小写, %d 代表一个整数; 第二个参数是一个变体数组 ... 阅读全文
posted @ 2007-12-18 23:15 万一 阅读(15957) 评论(15) 推荐(0) 编辑
摘要: Javascript Compressor Paste your code: Encoding: Fast Decode: Special Characters: Compress Decode 来自: http://www.cnblogs.com/szw/... 阅读全文
posted @ 2007-12-18 14:37 万一 阅读(2476) 评论(0) 推荐(0) 编辑
摘要: 概述 jQuery 是继 prototype 之后又一个优秀的 Javascript 框架。其宗旨是—写更少的代码,做更多的事情。它是轻量级的 js 库(压缩后只有21k) ,这是其它的 js 库所不及的,它兼容 CSS3,还兼容各种浏览器(IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)。 jQuery 是一个快... 阅读全文
posted @ 2007-12-18 13:10 万一 阅读(3470) 评论(0) 推荐(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-18 10:18 万一 阅读(7418) 评论(2) 推荐(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-18 01:41 万一 阅读(10392) 评论(1) 推荐(2) 编辑
摘要: 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-18 00:51 万一 阅读(18669) 评论(2) 推荐(1) 编辑
上一页 1 ··· 198 199 200 201 202 203 204 205 206 ··· 215 下一页