Hello everyone, i have a question about if this is possible or maybe
im wrong , because i try but  the variables not get the values for
example:

this is an array with 5 variables of my class "Distritos".

 Private Function FieldsDistritos() As ArrayList
        Dim list As New ArrayList
        list.AddRange(New String() {Me.codigo, _
                                    Me.distrito, _
                                    Me.provincia, _
                                    Me.departamento, _
                                    Me.region})
        Return List
    End Function

and I do this.


Public Sub GetDistrito(ByVal xcod As String)
        Dim da As New MySqlDataAdapter("select*from t_distritos where
codigo='" + xcod + "'", cn), dt As New DataTable
        da.Fill(dt)
        Dim lfields As New ArrayList, xcolumn As Integer = 0
        lfields = Me.FieldsDistritos
        Try
            If dt.Rows.Count > 0 Then
                For xfield As Integer = 0 To lfields.Count - 1
                    lfields(xfield) = dt.Rows(0)(xcolumn).ToString
                    xcolumn += 1
                Next
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub


is  correct to procedure ??? , because i want know the value of
"me.provincia" but when i look is nothing! .
please can anyone give me a suggestion if iam wrong? or give me
another example how can i do a procedure like this.

I wait your answers.

Good Bless.

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to