6
votes
Vote UpVote

“heredoc” multi-line strings

DelphiTools – DWScript now supports multi-line strings, aka “heredoc”, using the same syntax as Prism/Oxygene, which involves double-quoting them, for instance: s := "Lorem ipsum 'dolor' sit amet, consectetur adipiscing elit. Duis l'ipsum odio, pretium ""hendrerit"" varius sed, aliquet vitae elit. Sed eu libero nec nisl ""malesuada"" dignissim."; is equivalent to s := 'Lorem ipsum ''dolor'' sit amet, consectetur adipiscing elit.'#13#10 +'Duis l''ipsum odio, pretium "hendrerit" varius sed,'#13#10 +'aliquet vitae elit.'#13#10 +'Sed eu libero nec nisl "malesuada" dignissim.'; Which can ...
Favorite? Off-Topic? Eric @ 2012-02-24 08:19

Statistics

Visits: 561
Votes: 6
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

François
Jan Derk
Jørn E. Angeltveit
knight_killer
Primoz Gabrijelcic
Zzzzz
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)