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

VS 2010 convert string to integer

$
0
0
i have this function to read from text file..the problem is some times it read numbers and retun it as string although i want to return it as integer..any clue how to get this done
Code:

Public Function IniReadValue(ByVal Section As String, ByVal Key As String) As String
        Dim temp As New StringBuilder(255)
        Dim i As Integer = GetPrivateProfileString(Section, Key, "", temp, 255, Application.StartupPath + file.txt)
        Return temp.ToString
    End Function


Viewing all articles
Browse latest Browse all 27329

Trending Articles