Can I somehow: #define delim 0x07 (wrong is just 7 not [uchar]7 = BEL New comment Carl Schreiber 2014.07.23 12:32 Hi,to assign a variable a specific ASCII-Char e.g. 7 (BEL) one can do this: string b = CharToStr(7);but I cannot use this function if I want to define B as Bell: #define B 0x07This will be just 7 :(Is there a way to define B as Bell using #define?Thanks in advanceGooly what is ASCII from here this mt5 codepage list? Switch - declare variable "arrays passed by reference only" How do you solve this problem GreenMoney 2014.07.23 13:55 #1 Would the following work for you?#define BELL CharToStr(7). Carl Schreiber 2014.07.23 21:25 #2 Thirteen: Would the following work for you? YES - Thank you!I didn't try that because I was convinced the compiler will complain...Gooly William Roeder 2014.07.26 11:52 #3 Thirteen: Would the following work for you?. #define BELL CharToStr(7) But that requires a function call (per use.) Just create the character.#define BELL '\x7' // Char not string New comment
Hi,
to assign a variable a specific ASCII-Char e.g. 7 (BEL) one can do this:
but I cannot use this function if I want to define B as Bell:
#define B 0x07This will be just 7 :(
Is there a way to define B as Bell using #define?
Thanks in advance
Gooly