Re: How to get rid of constant color names for colordialog customcolors



"HanslH" <no@xxxxx> wrote in message
news:ibtrj2hcirrulrhhoj5ricaoj0p1rvf846@xxxxxxxxxx

[...] The (almost) right formattting string was
Format('%8x', [tKleur])

But even then if I understand this text correctly
//======================================
Hexadecimal. The argument must be an integer value. The value is
converted to a string of hexadecimal digits. If the format string
contains a precision specifier, it indicates that the resulting string
must contain at least the specified number of digits; if the value has
fewer digits, the resulting string is left-padded with zeros.
//=======================================
the string should be left padded with zeros, but it isn't. ...

That's because your format string doesn't include a precision
specifier. If it did, it would look like '%8.8x' (the second eight
is the precision).

From a youth partially misspent programming C, I have the habit
of writing '%08.8x' - the zero would indicate to printf() that I
desire zero-padding; then again, it would reject the '.8'.


Rgb codes, delphi color codes, color names, color constant names,
colors as longinteger,colors as rgb hex codes .. there should be a
faq about all this :-)

There are a few hurdles to getting your favourite source of confusion
into the miniFAQ. For instance, it must be Frequently Asked, and it
must not be too easy to find in the help file.

So, get yourself a half a dozen sock puppets...

Groetjes,
Maarten Wiltink (also Evil miniFAQ Boss)


.



Relevant Pages

  • Re: How to convert extra long strings into their equivalent Hex Strings in VBA (Word 2K)
    ... numbers (upto 18 digits max) into its equivalent Hex String ... Public Function ExpressServiceCode(ByVal ServiceTag As String) As String ... 'the number dblTemp in the specified base, ... Dim lngTemp As Long ...
    (microsoft.public.vb.general.discussion)
  • Re: BigNum -- Floating Point
    ... The 'N' is the number of decimal digits. ... The internal representation is really just a string of bits. ... the number of shifts for various multiples of ten: ... The 'exponent' is very closely related to ...
    (comp.programming)
  • Patterns in pi, copyright law, and philosophy
    ... Whether the offset of a string found in pi can be used as a form on ... then calculate how many digits of pi one would need to raise the ... "An infinite series of numbers is not an exhaustive set of numbers. ... finite string of digits occurs within the decimal expansion of pi, ...
    (sci.math)
  • Re: Patterns in pi, copyright law, and philosophy
    ... The digits of pi are widely believed to be "normal", in the sense that every n digit combination of digits is equally likely, and pass all reasonable tests of randomness. ... The mean length of the offset must at least be equal or greater than the length of the string you are looking for. ... Pi has an infinite representation as a decimal. ... finite string of digits occurs within the decimal expansion of pi, ...
    (sci.math)
  • Re: Required Field for 7 Numeric digits only
    ... Function IsNumber(ByVal Value As String) As Boolean ... > works with verifying that it has 7 digits and is a numeric filled> textbox ... > Private Sub TextBox1_KeyPress ... > Dim IsValid As Boolean ...
    (microsoft.public.excel.programming)