This caused me no end of grief because I was counting on a constant being the same in all three versions of the app.
I have the following line in class globals of a b4xpages project.
In B4A and B4J, as expected, the constant is:
t%yg&^ÞÞÈÃ
In B4i I get:
t%yg&^222222200195
THERE IS NO ERROR!
B4i version is 8.30.
Additional research:
I tried setting the value when initializing. Then found the post relating to having to use HEX.
What I found:
THIS fails:
= t%yg&^222222200195
THIS works:
= t%yg&^ÞÞÈÃ
In any case there needs to be a B4X solution that works in all cases or errors. (B4XChr()?).
I have the following line in class globals of a b4xpages project.
Dim TestCrypt As String = $"t%yg&^${Chr(222)}${Chr(222)}${Chr(200)}${Chr(195)}"$:
t%yg&^ÞÞÈÃ
In B4i I get:
t%yg&^222222200195
THERE IS NO ERROR!
B4i version is 8.30.
Additional research:
I tried setting the value when initializing. Then found the post relating to having to use HEX.
What I found:
THIS fails:
B4X:
TestCrypt = $"t%yg&^${Chr(0xDE)}${Chr(0xDE)}${Chr(0xC8)}${Chr(0xC3)}"$
THIS works:
B4X:
TestCrypt = "t%yg&^" & Chr(0xDE) & Chr(0xDE) & Chr(0xC8) & Chr(0xC3)
In any case there needs to be a B4X solution that works in all cases or errors. (B4XChr()?).
Last edited: