Homicidal Monkey Posted June 22, 2009 Author Share Posted June 22, 2009 SE1.0 uses property files instead of ini files. This should bridge the gap by adding property file support to vb6.```Public Sub WriteProperty(ByVal file As String, ByVal sectionArray, ByVal value As String) Dim i As Long Dim Section As String If value = vbNullString Then value = none For i = 0 To UBound(sectionArray) If i > 0 Then Section = Section + "." + sectionArray(i) Else Section = sectionArray(i) End If Next i Call WriteINI("default", Section, value, file)End Sub``````Public Function ReadProperty(ByVal file As String, ByRef sectionArray) As String Dim i As Long Dim Section As String For i = 0 To UBound(sectionArray) If i > 0 Then Section = Section + "." + sectionArray(i) Else Section = sectionArray(i) End If Next i ReadProperty = ReadINI("default", Section, file, "")End Function``````Dim sectionArray(0 to 2) as StringsectionArray(0) = "property"sectionArray(1) = "subproperty"sectionArray(2) = "subsubproperty"call writeproperty(app.path & "\properties.prp", sectionArray, "this is the value")``` Link to comment Share on other sites More sharing options...
dao Posted June 22, 2009 Share Posted June 22, 2009 um hm lol like no one will know what to do.. i dont know what to do =p mind explaining a lil? Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted June 22, 2009 Author Share Posted June 22, 2009 @Zultarâ„¢:> um hm lol like no one will know what to do.. i dont know what to do =p mind explaining a lil?it allows you to read/write SE1.0 property files within TE/EE. To install, just paste the two methods in any module in the source. Link to comment Share on other sites More sharing options...
dao Posted June 22, 2009 Share Posted June 22, 2009 ahh ok cool hm xD Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted June 22, 2009 Author Share Posted June 22, 2009 basically, its Object Oriented INI files. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now