Home

On Aug 29, 12:59 am, "Alf P. Steinbach" <al...@start.no> wrote:
> Try
>
> BoxColor const color = { 10, 20, 30 };
>
> Cheers, & hth.,
>
> - Alf
>

Hi Alf,

Sorry, I should have said, a single instance of this TBoxColour gets
assigned new values in 100's of locations throughout the code.

I suppose the only way is:

Col.Red = 10;
Col.Green = 20;
Col.Blue = 30;

The original method looks more elegant, This is just ugly, but more
importantly it's not easy for me to change the code with a simple
search and replace.

previous
next

Re: Unequal Length Maze
Re: making a opc client in Python and use opc server Events
Re: lambda-funcs problem
Re: Sets in Python
Re: My 'time' module is broken, unsure of cause
Mam Marzenie
Kidprotect
Niechciane i Zapomniane
Krwinka
Fundacja Hobbit