ID:270501
 
Since rgb() returns a hexadecimal string, does that mean I can just use hex in things like icon.SwapColor()?
icon.SwapColor("#ff0000","#0000ff")

That also brings up another question; is the hash (#) required, is it mandatory to exclude it, or is it optional in the above usage?
Well, from looking at runtime overs in the past with rgb() in SwapColor, I suppose you could use it yes. I also noticed in the runtime errors that you needed the # so I think that answers your question. Best to just try it out.

-Doh
I just ran a short test, and it does work with the hash included, but gives an error if you leave it out.
Although it was a bit rude, I think [link] is the best answer to questions like these.

As for my personal response: try it find out. It takes less than 30 seconds to run a test to find out (really, no exaggeration).

In fact, you should keep a test environment on hand specifically for times like these. A test program is usually the first thing I set up when I add another programming language to my computer, then I open it up whenever I have any questions like that and I run a test to answer it.