Const strings definitions

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
wlop
Posts: 13
Joined: 31 May 2006 08:25

Const strings definitions

#1 Post by wlop » 31 May 2006 08:45

Defining of const strings (initialization) containing freely selectable characters (from #0 till #255) would be very convinient especially in 'talkative' applications, which use self made character sets, national letters or control characters.
For example:

Code: Select all

const myTxt = 'AB'#13;
or

Code: Select all

const myTxt = 'AB'+#13;
or

Code: Select all

const myTxt = 'AB'+Chr(13);
By the way: the last syntax is accepted by the compiler, but generates invalid code.
TIA

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Const strings definitions

#2 Post by zristic » 31 May 2006 08:53

Will be fixed. Thanks.

Post Reply

Return to “mikroPascal Wish List”