D
dreamyyuan
Unregistered / Unconfirmed
GUEST, unregistred user!
type
THostInfo=class
public
Hostname:string;
Hostport:string;
procedure GetHostInfo();
end;
procedure THostInfo.GetHostInfo;
var Finifile:TIniFile;
begin
Finifile:=TInifile.Create('winpopup.ini');
try
with Finifile do
begin
HostName:=Finifile.ReadString('SysInfo','HostName',' . . .');
HostPort:=Finifile.ReadString('SysInfo','HostPort','12');
end;
finally
Finifile.Free;
end;
end;
為什麼不能給HostNanme,HostPort符值呢?執行到這裡就出錯。
THostInfo=class
public
Hostname:string;
Hostport:string;
procedure GetHostInfo();
end;
procedure THostInfo.GetHostInfo;
var Finifile:TIniFile;
begin
Finifile:=TInifile.Create('winpopup.ini');
try
with Finifile do
begin
HostName:=Finifile.ReadString('SysInfo','HostName',' . . .');
HostPort:=Finifile.ReadString('SysInfo','HostPort','12');
end;
finally
Finifile.Free;
end;
end;
為什麼不能給HostNanme,HostPort符值呢?執行到這裡就出錯。