Android Question Changing label.color

metrick

Active Member
Licensed User
Longtime User
How to change label.color via csv file? I have tried following code not working. Any input would be appreciated. Thanks.

B4X:
dim strColorName as string
strColorName = ParseColorName(",", CSVtextfile, 2)
'CSVtextFile contained white, black, blue, yellow, red. etc.
'strColorName = "Blue"
strColorName = "Colors." & strColorName
Label1.Color = strColorName
 
Top