Post Reply 
do not show number of bits
10-03-2024, 04:47 AM
Post: #2
RE: do not show number of bits
Your issue is caused by changing the default value of 'Bits' on the first page of the Home Settings (the edit field next to the 'Integers' drop-down). By default, this value is set to 32, and since RGB also returns a 32-bit value, there's no need to specify that the given value has a different bit-width. However, if you changed the value to something other than 32, the system will indicate that the resulting value has a different bit-width by appending information about the number of bits used. When you change this setting back to 32, the RGB result will no longer have the ":32h" at the end.

In a program, you can control this setting using the Bits variable. For example, at the beginning of your program, you can set Bits := 32 so that regardless of what is set in Home Settings, running this program will always set 32. This is a global variable that causes a permanent change to the system settings, so it might be worth temporarily saving its value and restoring it to its previous state before returning the string after the conversion.

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


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 - komame - 10-05-2024, 09:39 AM



User(s) browsing this thread: 2 Guest(s)