Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable hides a variable in an enclosing block
Message
De
27/04/2006 16:31:17
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Variable hides a variable in an enclosing block
Divers
Thread ID:
01117297
Message ID:
01117297
Vues:
142
I am creating a dataset manually, assigning its definition, defining rows and adding them to it. This has always worked well so far. However, in this particular syntax, I just can't find why I am having the error "Variable loRow2 hides a variable in an enclosing block". Here is the code:
        Dim loDataSet As DataSet = New DataSet
        loDataSet.Tables.Add("Temp")
        loDataSet.Tables(0).Columns.Add("Claim_No", GetType(System.String))

        For lnCounter = 1 To oDataProvider.nCount
            loRow = oDataProvider.oDataView(lnCounter - 1).Row

            Dim loRow2 As DataRow = loDataSet.Tables(0).NewRow
            Select Case oApp.nLanguage

                Case 1
                    loRow2("Claim_No") = loRow("Claim_No")
            End Select

            loDataSet.Tables(0).Rows.Add(loRow2)
        Next
The error is at the Dim loRow2 declaration.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform