when i Insert a vip color through the insert-menu in the editor i get for example this color:
0xB3B3FF
after that i would like to have this color to a string like "0xB3B3FF",
but when i use: toString( 0xB3B3FF ) the result of that is "11777023"
but i would like to have "0xB3B3FF" is there a way to realize that?
thankyou
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
Re: convert vpi color to string
The very short answer:
You can find more on format strings (which are also used by outputStream::writef) here: Language_Reference/Domains#Format_Strings.
Code: Select all
ColorHex = string::format("0x%06x", 0xB3B3FF),
Regards Thomas Linder Puls
PDC
PDC
-
- VIP Member
- Posts: 105
- Joined: 28 Apr 2006 12:03
Re: convert vpi color to string
thankyou , it works