Re: Arraylist Index Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Armin Zingler" <az.nospam@xxxxxxxxxx> schrieb
In VB 2008 you can do nice things like this:

dim b as boolean

b = Array.TrueForAll(labels, Function(l As Label) l.Text =
"4096.00")

where 'labels' is an array of labels.

I know you have an arraylist. Was only an example. Doesn't change that you need a loop.


Armin

.



Relevant Pages

  • Re: How to plot Double values graph with MSChART
    ... 'Set the column labels. ... we used a Variant data type array where the top row and left column are set to string variables and the lower right 2 by 2 submatrix is set to numeric values. ... Another poor design "feature" of the MSChart control, but there's absolutely nothing limiting as for display Double as a numeric type. ...
    (microsoft.public.vb.general.discussion)
  • Re: Read a file a line at a time from memory
    ... I am a forum moderator and spend about 10 hours a week ... The layout designer contains 64 labels that the user can ... I had a heck of a time dimensioning the array. ... Here is the Dim statement that you need... ...
    (microsoft.public.vb.general.discussion)
  • Re: Read a file a line at a time from memory
    ... This is part of the GDI layout designer I mentioned in a post a few ... The layout designer contains 64 labels that the user can ... I had a heck of a time dimensioning the array. ... Here is the Dim statement that you need... ...
    (microsoft.public.vb.general.discussion)
  • Re: A few basic questions for a newb coming from VB6
    ... In fact is the only difference in this between VB6 and VB10 that you cannot make an array of controls using the designer. ... In VB10 there are hundreds ways to make whatever kind of collection so also an array of labels ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Read a file a line at a time from memory
    ... The layout designer contains 64 labels that the user can ... The above sniplet is the information for one label. ... I had a heck of a time dimensioning the array. ... Dim TotalFile As String ...
    (microsoft.public.vb.general.discussion)