亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? help-function.txt

?? DELPHI常用函數(shù)集及簡要范例集
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
      for Y := 0 to StringGrid1.RowCount do
      begin
        { Write out the length of each string, followed by the string itself. }
        StringLen := Length(StringGrid1.Cells[X,Y]);
        FileWrite(FileHandle, StringLen, SizeOf(StringLen));
        FileWrite(FileHandle,
          StringGrid1.Cells[X,Y], Length(StringGrid1.Cells[X,Y]);//?????????/
      end;
    end;
    FileClose(FileHandle);
  end;
end;
##FileExists, RenameFile, FileCreate, FileWrite, FileClose, ExtractFileName Example
-----------------------------------------------------------------------------
FileSeek			移動(dòng)檔案指標(biāo)位置
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FileSeek(Handle, Offset, Origin: Integer): Integer;
說明		Origin=0讀/寫指標(biāo)由檔案開頭算起.
			Origin=1讀/寫指標(biāo)由目前位置算起.
			Origin=2讀/寫指標(biāo)移動(dòng)到檔案結(jié)束處.
****		功能與Dos Int 21h 插斷 42h 的功能相同.
			失敗傳回-1.
范例		procedure TForm1.Button1Click(Sender: TObject);
			var
			  FileHandle	: Integer;
			  FileName	: String;
			  Buffer		: PChar;
			  S			: String;
			  ReadBytes	: Integer;
			begin
			  FileName:='c:\delphi_test\abc.ttt';
			  S:='1234567890';
			  if FileExists(FileName) then
				FileHandle := FileOpen(FileName, fmOpenReadWrite)
			  else
				FileHandle := FileCreate(FileName);
			  if FileHandle < 0 then
				Begin
					MessageDlg('開檔失敗', mtInformation, [mbOk], 0);
					Exit;
				End;

			  GetMem(Buffer, 100);
			  try
				StrPCopy(Buffer, S);
				FileWrite(FileHandle,Buffer^,10);
				FileSeek(FileHandle,4,0);
				ReadBytes:=FileRead(FileHandle, Buffer^, 100);
				Buffer[ReadBytes]:=#0;
				Label1.Caption:=IntToStr(ReadBytes)+'   '+
					StrPas(Buffer);
			  finally
				FreeMem(Buffer);
			  end;

			  FileClose(FileHandle);
			end;

結(jié)果		存檔後abc.ttt共有1234567890等十個(gè)Bytes.
			從第五位元開始讀取,共讀取六個(gè)位元.
			567890
			(位移是從0開始算起)

procedure TForm1.Button1Click(Sender: TObject);

var
  iFileHandle: Integer;
  iFileLength: Integer;
  iBytesRead: Integer;
  Buffer: PChar;
  i: Integer
begin
  if OpenDialog1.Execute then
  begin
    try
      iFileHandle := FileOpen(OpenDialog1.FileName, fmOpenRead);
      iFileLength := FileSeek(iFileHandle,0,2);
      FileSeek(iFileHandle,0,0);
      Buffer := PChar(AllocMem(iFileLength + 1));
      iBytesRead = FileRead(iFileHandle, Buffer, iFileLength);
      FileClose(iFileHandle);
      for i := 0 to iBytesRead-1 do
      begin
        StringGrid1.RowCount := StringGrid1.RowCount + 1;
        StringGrid1.Cells[1,i+1] := Buffer[i];
        StringGrid1.Cells[2,i+1] := IntToStr(Integer(Buffer[i]));
      end;
    finally
      FreeMem(Buffer);
    end;
  end;
end;
##FileOpen, FileSeek, FileRead Example
-----------------------------------------------------------------------------
FileGetAttr		檔案屬性
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FileGetAttr(const FileName: string): Integer;
說明		faReadOnly	= $00000001;
			faHidden		= $00000002;
			faSysFile		= $00000004;
			faVolumeID	= $00000008;
			faDirectory	= $00000010;
			faArchive	= $00000020;
			faAnyFile	= $0000003F;
范例		procedure TForm1.Button1Click(Sender: TObject);
			var
			  S: String;
			begin
			  S:=IntToStr(FileGetAttr('c:\delphi_d\delphi_help1.txt'));
			  Label1.Caption := S;
			end;
-----------------------------------------------------------------------------
FileSetAttr			設(shè)定檔案屬性
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FileSetAttr(const FileName: string; Attr: Integer): 
				Integer;
說明		設(shè)定成功傳回0
-----------------------------------------------------------------------------
FindClose			結(jié)束FindFirst/FindNext
-----------------------------------------------------------------------------
procedure TForm1.Button1Click(Sender: TObject);

var
  sr: TSearchRec;
  FileAttrs: Integer;
begin
  StringGrid1.RowCount := 1;
  if CheckBox1.Checked then
    FileAttrs := faReadOnly
  else
    FileAttrs := 0;
  if CheckBox2.Checked then
    FileAttrs := FileAttrs + faHidden;
  if CheckBox3.Checked then
    FileAttrs := FileAttrs + faSysFile;
  if CheckBox4.Checked then
    FileAttrs := FileAttrs + faVolumeID;
  if CheckBox5.Checked then

    FileAttrs := FileAttrs + faDirectory;
  if CheckBox6.Checked then
    FileAttrs := FileAttrs + faArchive;
  if CheckBox7.Checked then

    FileAttrs := FileAttrs + faAnyFile;

  if FindFirst(Edit1.Text, FileAttrs, sr) = 0 then

  begin
    with StringGrid1 do
    begin
      if (sr.Attr and FileAttrs) = sr.Attr then
      begin
        Cells[1,RowCount-1] := sr.Name;
        Cells[2,RowCount-1] := IntToStr(sr.Size);
      end;
      while FindNext(sr) = 0 do
      begin
        if (sr.Attr and FileAttrs) = sr.Attr then
        begin
        RowCount := RowCount + 1;
        Cells[1, RowCount-1] := sr.Name;

        Cells[2, RowCount-1] := IntToStr(sr.Size);
        end;
      end;
      FindClose(sr);
    end;
  end;
end;
##FindFirst, FindNext, FindClose Example
-----------------------------------------------------------------------------
FindFirst			尋找第一個(gè)符合的檔案.
-----------------------------------------------------------------------------
procedure TForm1.Button1Click(Sender: TObject);

var
  sr: TSearchRec;
  FileAttrs: Integer;
begin
  StringGrid1.RowCount := 1;
  if CheckBox1.Checked then
    FileAttrs := faReadOnly
  else
    FileAttrs := 0;
  if CheckBox2.Checked then
    FileAttrs := FileAttrs + faHidden;
  if CheckBox3.Checked then
    FileAttrs := FileAttrs + faSysFile;
  if CheckBox4.Checked then
    FileAttrs := FileAttrs + faVolumeID;
  if CheckBox5.Checked then

    FileAttrs := FileAttrs + faDirectory;
  if CheckBox6.Checked then
    FileAttrs := FileAttrs + faArchive;
  if CheckBox7.Checked then

    FileAttrs := FileAttrs + faAnyFile;

  if FindFirst(Edit1.Text, FileAttrs, sr) = 0 then

  begin
    with StringGrid1 do
    begin
      if (sr.Attr and FileAttrs) = sr.Attr then
      begin
        Cells[1,RowCount-1] := sr.Name;
        Cells[2,RowCount-1] := IntToStr(sr.Size);
      end;
      while FindNext(sr) = 0 do
      begin
        if (sr.Attr and FileAttrs) = sr.Attr then
        begin
        RowCount := RowCount + 1;
        Cells[1, RowCount-1] := sr.Name;
        Cells[2, RowCount-1] := IntToStr(sr.Size);
        end;
      end;
      FindClose(sr);
    end;
  end;
end;
##FindFirst, FindNext, FindClose Example
-----------------------------------------------------------------------------
FindNext			尋找下一個(gè)符合的檔案.
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	procedure FindClose(var F: TSearchRec);
函數(shù)原型	function FindFirst(const Path: string; Attr: Integer;
				var F: TSearchRec): Integer;
函數(shù)原型	function FindNext(var F: TSearchRec): Integer;
說明		成功傳回0
范例		var
			  SRec: TSearchRec;
			procedure TForm1.SearchClick(Sender: TObject);
			begin
			  FindFirst('c:\delphi\bin\*.*', faAnyFile, SRec);
			  Label1.Caption := SRec.Name + ' is ' + IntToStr(SRec.Size) + 
				' bytes in size';
			end;
			procedure TForm1.AgainClick(Sender: TObject);
			begin
			  FindNext(SRec);
			  Label1.Caption := SRec.Name + ' is ' + IntToStr(SRec.Size) + 
				' bytes in size';
			end;
			procedure TForm1.FormClose(Sender: TObject);
			begin
			  FindClose(SRec);
			end

			TSearchRec = record
				Time: Integer;
				Size: Integer;
				Attr: Integer;
				Name: TFileName;
				xcludeAttr: Integer;
				FindHandle: THandle;
				FindData: TWin32FindData;
			end;

============================================
Floating-point conversion routines	浮點(diǎn)數(shù)轉(zhuǎn)換函式
============================================
FloatToDecimal	將浮點(diǎn)數(shù)轉(zhuǎn)換為十進(jìn)位數(shù).
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	procedure FloatToDecimal(var Result: TFloatRec; const Value;
				ValueType: TFloatValue; Precision, Decimals: Integer);
-----------------------------------------------------------------------------
FloatToStrF		將浮點(diǎn)數(shù)轉(zhuǎn)換為格式化字串.
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FloatToStrF(Value: Extended; Format: TFloatFormat; 
				Precision,Digits: Integer): string;
-----------------------------------------------------------------------------
FloatToStr			將浮點(diǎn)數(shù)轉(zhuǎn)換為字串.
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FloatToStr(Value: Extended): string;
-----------------------------------------------------------------------------
FloatToText		將浮點(diǎn)數(shù)轉(zhuǎn)換為格式化十進(jìn)位.
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FloatToText(Buffer: PChar; const Value; ValueType: 
				TFloatValue;Format: TFloatFormat; Precision, Digits: 
				Integer): Integer;
-----------------------------------------------------------------------------
FloatToTextFmt	將浮點(diǎn)數(shù)轉(zhuǎn)換為格式化十進(jìn)位.
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FloatToTextFmt(Buffer: PChar; const Value; 
				ValueType: TFloatValue; Format: PChar): Integer;
-----------------------------------------------------------------------------
FormatFloat		將浮點(diǎn)數(shù)轉(zhuǎn)換為格式化字串.
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function FormatFloat(const Format: string; Value: Extended): 
				string;
-----------------------------------------------------------------------------
StrToFloat			將字串轉(zhuǎn)換為浮點(diǎn)數(shù).
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function StrToFloat(const S: string): Extended;
范例		procedure TForm1.Button1Click(Sender: TObject);
			var
			  Value:Double;
			  S:String;
			begin
			  S:=' 1234.56  ';
			  Value:=StrToFloat(S);
			  Label1.Caption:=Format('轉(zhuǎn)換為 [%9.3f]',[Value]);
			end;

注意		若S字串含有非數(shù)字字元,會(huì)產(chǎn)生錯(cuò)誤訊號.
-----------------------------------------------------------------------------
TextToFloat		將 null-terminated 字串轉(zhuǎn)換為浮點(diǎn)數(shù).
-----------------------------------------------------------------------------
Unit		SysUtils
函數(shù)原型	function TextToFloat(Buffer: PChar; var Value; ValueType: 
				TFloatValue): Boolean;

===========================================
 Flow-control routines	流程控制常式
===========================================
Break				從 for, while, or repeat 終止跳出.
-----------------------------------------------------------------------------
Unit		System
函數(shù)原型		procedure Break;
范例		var
			  S: string;
			begin
			  while True do
				begin
					ReadLn(S);
					try
						if S = '' then Break;
						WriteLn(S);
					finally
						{ do something for all cases }
					end;
				end;
			end;
-----------------------------------------------------------------------------
Continue			從 for, while, or repeat 繼續(xù)執(zhí)行.
-----------------------------------------------------------------------------
Unit		System
函數(shù)原型	procedure Continue;
范例		var
			  F: File;
			  i: integer;
			begin
			  for i := 0 to (FileListBox1.Items.Count - 1) do
				begin
				 try
				  if FileListBox1.Selected[i] then
				   begin
					if not FileExists(FileListBox1.Items.Strings[i]) then
					 begin
					 MessageDlg('File: ' +FileListBox1.Items.Strings[i] 
					 + ' not found', mtError, [mbOk], 0);
					 Continue;
					 end;
				   AssignFile(F, FileListBox1.Items.Strings[i]);
				   Reset(F, 1);
				   ListBox1.Items.Add(IntToStr(FileSize(F)));
				   CloseFile(F);
				   end;
				 finally
				   { do something here }
				 end;
				end;
			end;
范例
var
  F: File;
  i: Integer;
begin
  for i := 0 to (FileListBox1.Items.Count - 1) do begin
  try
    if FileListBox1.Selected[i] then 
    begin
      if not FileExists(FileListBox1.Items.Strings[i]) then begin
        MessageDlg('File: ' + FileListBox1.Items.Strings[i] + 
                   ' not found', mtError, [mbOk], 0);
        Continue;
      end;
      AssignFile(F, FileListBox1.Items.Strings[i]);

      Reset(F, 1);
      ListBox1.Items.Add(IntToStr(FileSize(F)));
      CloseFile(F);
    end;
   finally
   { do something here }
   end;
  end;
end;
## Continue, Items, Selected Example
-----------------------------------------------------------------------------
Exit				直接離開一個(gè)程序.
-----------------------------------------------------------------------------
Unit		System
函數(shù)原型	procedure Exit;
-----------------------------------------------------------------------------
Halt				結(jié)束程式返回作業(yè)系統(tǒng).
-----------------------------------------------------------------------------
Unit		System
函數(shù)原型	procedure Halt [ ( Exitcode: Integer) ];
范例		begin
			  if 1 = 1 then
				begin
					if 2 = 2 then
					  begin
						if 3 = 3 then

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆久久久久久| 懂色av中文一区二区三区| 亚洲精品成人少妇| 最近中文字幕一区二区三区| 国产精品欧美一级免费| 国产午夜精品在线观看| 国产女人aaa级久久久级| 国产偷v国产偷v亚洲高清| 久久蜜桃一区二区| 久久九九国产精品| 国产欧美日韩在线视频| 国产精品乱码一区二区三区软件| 国产亚洲欧美日韩日本| 亚洲国产成人在线| 亚洲免费在线播放| 亚洲尤物视频在线| 日本美女一区二区三区视频| 麻豆精品蜜桃视频网站| 国产成人av福利| 97久久精品人人爽人人爽蜜臀| 色香蕉成人二区免费| 欧美日韩精品综合在线| 欧美肥胖老妇做爰| 精品乱码亚洲一区二区不卡| 国产精品丝袜黑色高跟| 一区二区久久久| 日韩avvvv在线播放| 国产美女娇喘av呻吟久久| 成人久久18免费网站麻豆| 色综合中文字幕国产| 中文在线免费一区三区高中清不卡| 中文字幕日韩精品一区| 亚洲电影视频在线| 国产在线精品一区二区三区不卡| 波多野结衣中文字幕一区| 欧美伊人久久大香线蕉综合69| 日韩一区二区免费在线观看| 国产欧美精品区一区二区三区 | 久久久久久久久免费| 国产精品久久久久一区二区三区 | 亚洲视频图片小说| 午夜精品久久久久久久99樱桃| 国产在线视频一区二区三区| 色综合一个色综合亚洲| 91精品啪在线观看国产60岁| 国产一区二区在线观看视频| 成人国产精品免费观看| 欧美一区二区三区成人| 中文字幕中文字幕一区二区| 一区二区日韩av| 一区二区三区欧美在线观看| 人人超碰91尤物精品国产| 国产91在线观看| 色88888久久久久久影院按摩| 欧美成人免费网站| 亚洲久草在线视频| 麻豆精品视频在线观看| 色婷婷狠狠综合| 久久嫩草精品久久久精品 | eeuss鲁片一区二区三区在线观看| 欧美丝袜丝交足nylons图片| 国产亚洲综合色| 日韩主播视频在线| 国产乱妇无码大片在线观看| 欧美综合一区二区三区| 欧美一二三四区在线| 亚洲美女免费在线| 国产乱子伦一区二区三区国色天香| 91国模大尺度私拍在线视频| 中文字幕国产一区| 久久精品久久久精品美女| 欧美三级在线视频| 中文字幕视频一区二区三区久| 老司机午夜精品99久久| 精品视频一区 二区 三区| 国产蜜臀97一区二区三区| 免费欧美在线视频| 欧美日韩高清一区二区| 一区二区三区四区在线| 国产91精品在线观看| 欧美日韩高清一区二区不卡| 中文字幕电影一区| 日韩中文字幕1| 色综合天天综合网国产成人综合天| 欧美精品久久99| 亚洲国产岛国毛片在线| 亚洲蜜臀av乱码久久精品 | 99久久伊人网影院| 欧美一区2区视频在线观看| 亚洲免费视频成人| 成人性生交大片免费看视频在线| 91精品国产综合久久福利软件| 亚洲色图视频网| 国产精品一卡二卡在线观看| 欧美卡1卡2卡| 亚洲免费观看高清完整| 色综合欧美在线视频区| 岛国精品一区二区| 久久精品人人做人人爽97| 黄色精品一二区| 欧美v国产在线一区二区三区| 麻豆久久一区二区| 久久综合999| 国产精品一区二区三区乱码| 久久久久一区二区三区四区| 国产精品一卡二卡在线观看| 久久精品网站免费观看| 国产大陆精品国产| 中文字幕在线不卡一区| 色狠狠av一区二区三区| 亚洲午夜免费电影| 56国语精品自产拍在线观看| 另类小说视频一区二区| 精品国产乱码久久久久久闺蜜 | 在线观看不卡视频| 亚洲bt欧美bt精品| 欧美一级久久久久久久大片| 久久精品理论片| 国产拍欧美日韩视频二区| 91在线视频播放地址| 亚洲欧美日韩在线| 欧美日韩卡一卡二| 久久电影网电视剧免费观看| 国产午夜精品久久| 色综合久久久久网| 日韩精品免费专区| 久久综合久久鬼色| 99久免费精品视频在线观看| 亚洲成a人v欧美综合天堂下载| 91麻豆精品久久久久蜜臀 | 日韩欧美在线一区二区三区| 精品一区二区久久久| 国产精品久久久久影院老司| 欧美在线视频日韩| 激情五月婷婷综合网| 中文字幕一区二区三中文字幕| 在线亚洲欧美专区二区| 免费观看一级欧美片| 国产日本欧洲亚洲| 欧美一a一片一级一片| 久久99国产精品久久99果冻传媒| 国产精品天美传媒沈樵| 欧美三级电影在线看| 韩国三级电影一区二区| 亚洲欧美日韩小说| 91精品国产手机| 不卡的av网站| 毛片一区二区三区| 亚洲欧美另类小说| 精品成人a区在线观看| 色综合色综合色综合| 韩日欧美一区二区三区| 亚洲综合小说图片| 国产欧美日韩另类视频免费观看| 欧美性生活大片视频| 国产超碰在线一区| 日韩高清电影一区| 亚洲欧美自拍偷拍| 欧美大胆一级视频| 91福利国产成人精品照片| 国产电影一区二区三区| 日韩精品色哟哟| 亚洲欧美日韩国产中文在线| 精品乱码亚洲一区二区不卡| 欧美一a一片一级一片| 国产69精品久久久久毛片| 午夜视频在线观看一区| 中文字幕亚洲一区二区av在线| 91精品国产欧美一区二区成人| 91麻豆福利精品推荐| 91精品国产综合久久久蜜臀图片 | 欧美亚洲综合网| 风间由美中文字幕在线看视频国产欧美| 亚洲电影你懂得| 亚洲欧洲精品一区二区精品久久久| 欧美va亚洲va| 777色狠狠一区二区三区| 99精品视频一区| 国产河南妇女毛片精品久久久| 日韩**一区毛片| 亚洲成人7777| 一区二区三区中文在线| 中文一区在线播放| 久久精品视频网| 26uuu国产电影一区二区| 欧美男人的天堂一二区| 日本精品一区二区三区高清 | 精品国产一区二区三区av性色| 欧美视频一区在线| 91最新地址在线播放| 成人视屏免费看| 国产电影一区二区三区| 国产在线精品视频| 理论电影国产精品| 青青草原综合久久大伊人精品优势| 偷拍亚洲欧洲综合| 午夜免费久久看| 丝袜亚洲另类欧美综合| 亚洲成av人片在www色猫咪| 一区二区三区色|