S
SINGLBOY
Unregistered / Unconfirmed
GUEST, unregistred user!
代码:
function ReturnSs:TStrings;
var GSs:TStrings;
begin
; GSs := TStringList.Create;
; try
; ; GSs.Add('aaaaaaaaaa');
; ; Result:=GSs;
; finally
// ; ;GSs.Free; ; ; ; ; ;//打开这句话后程序出错
; end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
; MSs:TStrings;
begin
; MSs := TStringList.Create;
; try
; ; MSs:=ReturnSs;
; ; ShowMessage(MSs[0]);
; finally
; ; MSs.Free;
end;