Re: A complicated thing?

alanglloyd_at_aol.com
Date: 03/28/05


Date: 28 Mar 2005 06:48:19 -0800

Store the week number in the TRadioGroup.Items.Objects array. Each
element of the array can store any 4-byte number (the size of a TObject
which the array elements are typed as). You must typecast the
weeknumber to a TObject when storing it - ...

MyRadioGroup.Items.Objects[i] := TObject(WeekNumber);

Similarly typecast it back to an integer (or whatever type your
weeknumber is) when you retrieve the value ...

SelectWeekNumber :=
integer(MyRadioGroup.Items.Objects[MyRadioGroup.ItemIndex])

Alan Lloyd



Relevant Pages

  • Re: naming array values?
    ... The problem is, in my experience, that when store array elements in ... the length of the array is not adjusted. ... var images = new Array; ... You will probably need two arrays, one to store the "names" and the ...
    (comp.lang.javascript)
  • Re: Finding the nearest match without reusing results
    ... comparing an array with a value generates an array of Trues and ... Any diff with wrong State or with used Store is implicitly zeroed out. ... Each must be larger than the absolute value of the maximum Sales ... go.....it just needs to return the closest match. ...
    (microsoft.public.excel.programming)
  • Re: read keyboard input and storing in an array?
    ... > I'm trying to store user input in an array, ... You have the beginnings of that logic already since your prompt tells the ... 201st value since the array only has room for 200 values. ... This will force you to store the int values as Integer ('Integer' ...
    (comp.lang.java.help)
  • Re: Challenge: reading ascii data
    ... to store all the data before producing any output. ... would be bad practice in terms of memory consumption to use a standard ... So I use hashes to create a two-level "sparse array", ... Well the original problem definition was: ...
    (comp.lang.fortran)
  • Re: attempting an actual game...
    ... >>> and inflexible by the absurd decision to use a bit array for square ... as then one has 8 bits in which to store a color and a few flags ... Using a 2D int (or, ... > Change direction and you may eventually complete a game. ...
    (comp.games.development.programming.misc)