Yeah, I just tested the second sample Chr(8362) and noticed that the first sample was still the wrong way around. That's interesting. I remember with Arabic writing in Windows, text used to move itself about when changing direction, perhaps the same is happening here when the text output routine sees your currency symbol.
update: the B4A IDE cursor does very strange things when traversing those characters too...
the first character is right-to-left, and I expect the other character will be too. So now I am looking at how to override text directionality. Or to trick it somehow into putting the symbol first.
A workaround might be to put the currency symbol in one label, and the monetary number in a separate label.
I am going to have to admit defeat on this one, for tonight at least.
If you place text between the currency characters, then they stay in left-to-right order. So I figure if I could just find some non-printing characters to put between the currency characters, that would do the job (although no doubt I'd cop an ear-bashing from Erel ;-)
However, that doesn't work. Java's handling of text direction is irritatingly thorough.
I tried CSBuilder too, thinking that the formatting codes in that might interrupt the text direction handling, but... no luck there either.
Or apparently CSBuilder can include images within a string, so... you could include an IMAGE of the two currency characters... bit of an icky solution, but hey: if it works, it works ;-)
Or apparently CSBuilder can include images within a string, so... you could include an IMAGE of the two currency characters... bit of an icky solution, but hey: if it works, it works ;-)
and from there I tried using various directional formatting characters and sequences until I found one that worked with both Log() and with Label.Text =