K
kwmxw
Unregistered / Unconfirmed
GUEST, unregistred user!
在 myfun中定义函数
function readinistr(ininame,secname,ident,mystrchar)char
var
myini:Tinifile;
begin
try
try
myini:=tinifile.create(ininame)
result:=myini.readstring(secname,ident,mystr);
except
on e:exception do
showmessage(e.messages);
end;
finally
myini.destroy;
end;
end;
然后在datamodule中调用
uses myfun;
readinistr('boot.ini','database','server','');
不能出现正常结果,调试出现stock overflow 请问该如何解决?
function readinistr(ininame,secname,ident,mystrchar)char
var
myini:Tinifile;
begin
try
try
myini:=tinifile.create(ininame)
result:=myini.readstring(secname,ident,mystr);
except
on e:exception do
showmessage(e.messages);
end;
finally
myini.destroy;
end;
end;
然后在datamodule中调用
uses myfun;
readinistr('boot.ini','database','server','');
不能出现正常结果,调试出现stock overflow 请问该如何解决?