In B4A I can give a variable name to a color by doing this.
But I get an error when I code this.
Error:
B4XMainPage - 107: This sub should only be used for variables declaration or assignments of primitive values. (warning #29)
Same error when I tried changing Int to Object and just for giggles to B4XView. Can someone inform me what type to use please or even if I can even do this? I can't find any information on the Forum on how to proceed.
B4X:
Dim Cornstalk As Int = Colors.RGB(255, 248, 220)
But I get an error when I code this.
B4X:
Dim Cornstalk As Int = xui.Color_RGB(255, 248, 220)
Error:
B4XMainPage - 107: This sub should only be used for variables declaration or assignments of primitive values. (warning #29)
Same error when I tried changing Int to Object and just for giggles to B4XView. Can someone inform me what type to use please or even if I can even do this? I can't find any information on the Forum on how to proceed.