第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如果想使用delphi來(lái)調(diào)用函數(shù)過(guò)程,求問(wèn)該怎么做?

如果想使用delphi來(lái)調(diào)用函數(shù)過(guò)程,求問(wèn)該怎么做?

ITMISS 2021-07-22 20:15:17
unit button;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls;typeTForm1 = class(TForm)Button1: TButton;Label1: TLabel;procedure FormCreate(Sender: TObject);procedure Button1Click(Sender: TObject);procedure Label1Click(Sender: TObject);private{ Private declarations }public{ Public declarations }end;varForm1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);function GetFileCount(srcPath, srcFileName: string): Integer;varFileRec: TSearchrec;currPath: string;beginif srcPath[Length(srcPath)] <> '\' then srcPath := srcPath + '\';currPath := srcPath + '*.*';Result := 0;if FindFirst(currPath, faAnyFile, FileRec) = 0 thenrepeatif ((FileRec.Attr and faDirectory) <> 0) and(FileRec.Name <> '.') and(FileRec.Name <> '..') thenbeginResult := Result + GetFileCount(srcPath + FileRec.Name, srcFileName);end elseif AnsiCompareText(srcFileName, FileRec.Name) = 0 thenResult := Result + 1;until FindNext(FileRec) <> 0;end;beginend;procedure TForm1.Button1Click(Sender: TObject);beginfunction GetFileCount(srcPath, srcFileName: string): Integer;end;procedure TForm1.Label1Click(Sender: TObject);beginlabel1.caption:='333333'end;end.如何在button1窗體下調(diào)用函數(shù)過(guò)程
查看完整描述

2 回答

?
當(dāng)年話下

TA貢獻(xiàn)1890條經(jīng)驗(yàn) 獲得超9個(gè)贊

procedure proA();
begin
end;
procedure buttonclick(sender:Tobject);
begin
proA();
end;

查看完整回答
反對(duì) 回復(fù) 2021-07-29
  • 2 回答
  • 0 關(guān)注
  • 480 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)