condition in array
Results 1 to 2 of 2

Thread: condition in array
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Mar 2011
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post condition in array

    hello, i have one questions,

    Code:
    condition = 50
    
    For Each l In ccc
        If l > condition Then
            l = l
            With aaa
            .Add Item:=l
            End With
        Else:
            l = l
            With bbb
            .Add Item:=l
            End With
        End If
        
    Next
    ccc is collection
    aaa and bbb is array
    I need separate array with condition and fill values that meet condition to array aaa and values that are not valid for condition fill to array bbb.
    array is dynamic and randomly generated.
    Please can anybody help me ?

  2. #2
    Board Regular
    Join Date
    Jul 2002
    Location
    Milton Keynes, England
    Posts
    11,044
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Default Re: condition in array

    You don't add to arrays like that. As you seem to already be working with collections can I ask why you aren't using collections for aaa and bbb? And why are you doing "l=l" in your code? And why use With to enclose a single statement?
    Cheers, Glenn.

    Beauty is in the eye of the beer-holder.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •