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?
ID:270501
![]() May 31 2006, 9:37 am
|
|
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? |
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. |
-Doh