Menu

#3 Chr, Ord, Succ, Pred functions

open
nobody
None
5
2007-12-25
2007-12-25
No

It would be nice to have Pascal's Chr, Ord, Succ and Pred functions, making it possible to handle special characters, insert newline and pagefeeds in strings and other characters-related manipulations.

const BS = 8;
TAB = 9;
LF = 10;
VT = 11;
FF = 12;
CR = 13;

var st1 : string;
st1 := 'hello'+ chr(CR) +'world';

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.