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

VS 2010 Strange error - splitting and adding to listview

$
0
0
hi,

friends i don't no how to fix, so here's me code:
Code:

For Each ln In IO.File.ReadAllLines(iniFile)
            If ln.ToLower.StartsWith("app name") Then
                Dim app_name As String = ln.Substring(ln.IndexOf(":"c) + 1) '//a faster and more efficient option than splitting
            End If

            App_List.Items.Add(app_name)

        Next

on this line: App_List.Items.Add(app_name) it says app_name is not declared....

Viewing all articles
Browse latest Browse all 27243

Trending Articles



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