3
votes
Vote UpVote

Puzzling a Pascal developer with 33 years experience under the belt

TMS Software Blog – Recently we received via our support a remark that the following Object Pascal code failed in a TMS WEB Core application procedure TWebForm1.Button1Click(Sender: TObject); function TestFunction: TStringList; begin Result.Clear; Result.Add('ABC'); Result.Add('DEF'); Result.Add('GHI'); end; var StringList: TStringList; begin StringList := TStringList.Create; try WebMemo1.Lines.Text := TestFunction.Text; finally StringList.Free; end; end; My immediate reaction and answer was "Of course, it is normal and expected this fails. One should create the result ...
Favorite? Off-Topic? 2019-10-01 10:04

Statistics

Visits: 272
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Michał Rajewicz
SayVegin
slr4bf
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)