do not show number of bits
|
10-02-2024, 09:45 PM
Post: #1
|
|||
|
|||
do not show number of bits
Greetings,
I am writing a user-key program that returns/inserts a "color code". The program ends with RETURN STRING(color); There are several ways to enter the color. >>One method uses a CHOOSE list where a color is selected from the list and sets (for example) color:=#FF00FFh; The returned string is #FF00FFh. Which is what I want. >>Another method uses INPUT where a color is inserted in hex format. Such as #00FAD3h. The returned string is #00FAD3h. Which is what I want. >>A third method uses INPUT where a color is inserted with three RGB values. For example R=128, G=255 and B=45 and color:=RGB(R,G,B); The returned string is #80FF2D:32h. I know the number is the same with or without the number of digits displayed but this user key will be used to insert the color into the editor while I am writing a program and I would rather not have the ":32" in the program file. Is there a way to hide the number of bits or do I have to strip the :32 from the string before returning? |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
do not show number of bits - glfiedler - 10-02-2024 09:45 PM
RE: do not show number of bits - komame - 10-03-2024, 04:47 AM
RE: do not show number of bits - glfiedler - 10-03-2024, 07:13 PM
RE: do not show number of bits - komame - 10-04-2024, 07:54 PM
RE: do not show number of bits - Nigel (UK) - 10-05-2024, 09:01 AM
RE: do not show number of bits - komame - 10-05-2024, 09:39 AM
|
User(s) browsing this thread: 1 Guest(s)