I'm trying to create a different way to pull data from a ini file. Rather than only pulling the values, i wish to pull everything under the [name] until it reaches another [name].
If strLine <> vbNull Then entrys(y + 1, x) = strLine
y = y + 1
Else
If strLine <> vbNull Then entrys(y, x + 1) = strLine
x = x + 1
End If
Loop
Close #ff
MsgBox entrys(1, 0)
MsgBox entrys(1, 1)
End Sub
That would put everything into an array. Each name would be in (1, 0) - (2, 0) - (3, 0) and their child entrys would be the second dimension like (1, 1) - (2, 1). I'm sure there is a better way, but it works
Age - 15 ::: Level - Advanced
If you find my post useful please ::Rate It::
yah it works, but i'm going to need something that starts at the [name] that i want, and finish at the next [name] but pull all the info between the two. The [name] could be on any line, so it would be very hard for me to find using that code.
a bit buggy. heres the thing though. i will only know the name of the info that i need to pull. The name that it should stop at is random. So the only way i can think of stopping it, is simply using a [ to hault.
Hey that works out pretty good. But by looking at it, there wouldn't be a way to check to see if there is a "=" on the same line that the finishword is on, because all of the data is in one big chunk. Would there be another way of doing this, maybe using split?
ehh bit buggy, couldn't really tell if that was even what i'm looking for. i could only get it to pull the info to the left of the '=' without having it lock up on me.