Saturday, 31 August 2013

setBackGroundRGB not accepting string

setBackGroundRGB not accepting string

The class setBackgroundRGB() works if I pass it a literal
setBackgroundRGB(255,255,255);
but if I pass it a variable instead, it fails:
_Color = "255, 255, 255";
setBackgroundRGB(_Color);
Does not work and returns an error
`Cannot find method setBackgroundRGB(string)`
Do i need to do some kind of conversion here that I am not aware of?

No comments:

Post a Comment