0
votes
Vote UpVote

A fUnNy StRiNg

The Programming Works – CR in his recent post about the quality of Delphi help discussed the StrUpper/StrLower code example. I was interested why the original D7 example causes an access violation while the similar D2009 example runs without AV. So I have written the following tests (in Delphi 2009): {$WRITEABLECONST OFF} var S1: PChar = 'A fUnNy StRiNg 1'; S2: string = 'A fUnNy StRiNg 2'; S3: array[0..20] of Char = 'A fUnNy StRiNg 3'; const S4: array[0..20] of Char = 'A fUnNy StRiNg 4'; procedure TForm1.Button1Click(Sender: TObject); var S: string; begin S:= S1; Canvas.TextOut(5, 10, ...
Favorite? Off-Topic? Serg @ 2010-06-18 08:48

Statistics

Visits: 22
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

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)