Extra spaces in a label

I would like to display a label with multiple spaces between characters. It appears that when it is displayed on the browser only one space shows up. This is characteristic of a browser. However, to get around it on HTML, you can insert   into the text and it will give you extra space(s).

Can you also do that in RB somehow?

&uA0 is the non-breaking space.

While Dan’s problem is standard space handling in HTML, Andrew’s tip is quite welcome!

Ugh - tab happy…

However, how would one go about entering that &uA0 into a label?

[quote=14901:@Tim Jones]Ugh - tab happy…

However, how would one go about entering that &uA0 into a label?[/quote]
I don’t think you can use HTML inside a label.

I haven’t personally tried it, but couldn’t you use control/ascii codes to write CTRL+SHIFT+SPACE into a label?

No, that won’t work either. The conflict is in that we don’t convert spaces into   which is necessary for runs of spaces, and HTML does convert them into a single space.

&uA0 isn’t HTML–it’s a literal in Xojo, so you might write

s = "Hello" + &uA0 + &uA0 + "World"

Granted, it does look kindof like an HTML entity, which would in that notation be  .