Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27400

VS 2008 retriving array values

$
0
0
Code:


 While m_reader.Read
            If Not m_reader("cname") = "" Then
                arryname.Add(m_reader("cname"))
 arrymail.Add(m_reader("mail"))
            End If
        End While


 For Each item As String In arryname

        Next

i hve the above code in which i am adding the fields 2 array
for retriving the values of each field i will need to execute the for loop twice
how can i retive values of both array items using a single loop

Viewing all articles
Browse latest Browse all 27400


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>