Android Question Display number and text in a label using string array

SeaBee

Member
Licensed User
I must be off my meds again, but I cannot see why:

SomeTextLabel.Text = NumberFormat(someDouble, 1, 1) & " units"

works,

but:

SomeTextLabel.Text = NumberFormat(someDouble, 1, 1) & strUnitsArray(unitsIndex)

doesn't.

I have verified, using a Msgbox, that the array has loaded correctly, and I have verified that the unitsIndex is set properly in another Msgbox.

Is it supposed to work, or do I have to just use literal strings?
 

SeaBee

Member
Licensed User
What doesn't work ?
Do you get any error message ?
Even with the array, it should work.
Thanks for the quick response.

Nothing is shown after the number. No errors, no warnings. If it should work then I will go and check my code again, just to make sure I haven't done anything stupid.
 
Upvote 0

SeaBee

Member
Licensed User
Thanks for that. It is now beer-o-clock over here, so I will check it out tomorrow.
 
Upvote 0
Top