backwards text in a text box

I have looked or searched with google for this. I am wondering if it is possible to make a code that will do " 5 4 3 2 1 0 " in a text box or label instead of the default
" 1 2 3 4 5 " ?

Thanks,
Brian.

Use the Downto option http://developer.xojo.com/downto in a for/next loop.

Dim s As String = " " For i As Integer = 5 Downto 0 s = s + Str(i) + " " Next TextField1.text = s

TextField1.text = “5 4 3 2 1 0”
since there is no “default” value… set it to whatever you like…
as your question indicated a text value, and no mention of using For/Next :slight_smile:

Not one of these things to do with text entry where the letters shift right to left as you type?
If so, this will be a strange app to deal with for English speakers…

https://superuser.com/questions/471692/how-to-change-the-text-direction-on-windows

Thank you Wayne Golding. That worked.

Brian

[quote=351789:@Jeff Tullin]Not one of these things to do with text entry where the letters shift right to left as you type?
If so, this will be a strange app to deal with for English speakers…

https://superuser.com/questions/471692/how-to-change-the-text-direction-on-windows[/quote]