on 2023 Jan 12 6:24 PM
Hi All
I want to check weather a char is a "\" [backslash].
char previousChar = 0;<br>if (previousChar != '\\') {<br>//do something<br>}
It works with Visual Studio Code (newest Java version)
But in the UDF everything after the " ' " appears blue.
I tried '\' or "\\" or "\" but nothing worked.
Request clarification before answering.
As UDF is based in an older Java version, you have to go with the char code.
\ is '\u005c'
if (previousChar != '\u005c') {
//do something
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.