小
小学生_hjz
Unregistered / Unconfirmed
GUEST, unregistred user!
1.这是一段程序的截取,问划线处的代码是什么意思?怎么用?
procedure TForm1.StringGrid1GetEditMask(Sender: TObject;
ACol,
ARow: Integer;
var Value: String);
begin
Value := '09;0';
-----------------
end;
2.procedure TForm1.UpdateButtonClick(Sender: TObject);
var
I, J: Integer;
begin
for I := 1 to 4do
begin
Chart1.Series [I-1].Clear;
for J := 1 to 5do
Chart1.Series [I-1].Add (
StrToInt (StringGrid1.Cells [J, I]),
'', Chart1.Series [I-1].SeriesColor);
end;
end;
UpdateButtonClick (self);
----------------------------
我知道划线处是一个函数调用可参数用self是为什么?再什么情况下用self?
procedure TForm1.StringGrid1GetEditMask(Sender: TObject;
ACol,
ARow: Integer;
var Value: String);
begin
Value := '09;0';
-----------------
end;
2.procedure TForm1.UpdateButtonClick(Sender: TObject);
var
I, J: Integer;
begin
for I := 1 to 4do
begin
Chart1.Series [I-1].Clear;
for J := 1 to 5do
Chart1.Series [I-1].Add (
StrToInt (StringGrid1.Cells [J, I]),
'', Chart1.Series [I-1].SeriesColor);
end;
end;
UpdateButtonClick (self);
----------------------------
我知道划线处是一个函数调用可参数用self是为什么?再什么情况下用self?