SAY討論區

標題: Delphi- Record Field 要怎樣解決?? 各位大大幫幫忙,十二萬分感謝。。 [打印本頁]

作者: frankyhui    時間: 2012-5-12 02:35:32     標題: Delphi- Record Field 要怎樣解決?? 各位大大幫幫忙,十二萬分感謝。。

<div class="blockcode"><span class="headactions" onclick="copycode($('code0'));">複製內容到剪貼板</span><h5>代碼:</h5><code id="code0">procedure TForm1.Button1Click(Sender: TObject);
MailingListRecord = record
FirstName : String;
LastName : String;
Address : String;
Ciy : String;
State : String;
Zip : Integer;
end;

var
MLRecord : TMailingListRecord;

begin
MLRecord.FirstName := 'Bruce';
MLRecord.LastName := 'Reisdorph';
MLRecord.Address := '123, XXX, NewYork';
MLRecord.City := 'New York';
MLRecord.State := 'NY';
MLRecord.Zip := '99999';

Label1.Caption := MLRecord.LastName;
end;

end.</code>




歡迎光臨 SAY討論區 (http://say.go2tutor.com/) Powered by Discuz! X2