I am opening a ini file as text
I want the sections added to a combobox without the braces[]
example ini file with 2 sectionsCode:Dim fName As String fName = gMyPath & "\Keno.ini" Dim IniText As String Dim strInFile As String Dim f As Integer Dim l As Long f = FreeFile If FileExists(fName) Then Open fName For Input As f Do Until EOF(f) Line Input #f, IniText if initext = [] then cboSections.additem Initext l = l + 1 End If Loop Close #f End If
[20 5 spots bet 20 2 blocks]
TotWonLost=-9.5
TotalRuns=301
NuBigWins=3
WonLost=-9.5
[20 5 spots bet 20 3 blocks]
TotWonLost=-0.2
TotalRuns=50
NuBigWins=0
WonLost=-0.2
how can this be done ?





Reply With Quote