Also the library INIFile.dll is compatible with 1C 77
Public Sub SetPath(inputPath)
Public Function GetPath() As String
Public Function Load() As Boolean
Public Function LoadFrom(filePath) As Boolean
Public Function Loaded() As Boolean
Public Function E(sectionName, Optional propertyName) As Boolean
Public Function ExistProperty(sectionName, Optional propertyName) As Boolean
Public Function G(sectionName, Optional propertyName) As String
Public Function GetProperty(sectionName, Optional propertyNam) As String
Public Function GetCompareMode() As Byte
Public Function SetCompareMode(mode) As Boolean
Public Function TOP(sectionName, Optional propertyName) As Integer
Public Function TypeOfProperty(sectionName, Optional propertyName) As Integer
Const types:
- TYPE_OF_NOT_DEFINED = -1
- TYPE_OF_DICTIONARY = 2
- TYPE_OF_NOT_EXIST = 0
- TYPE_OF_STRING = 1
Public Function GD(sectionName, Optional propertyName) As Object
Public Function GetDictionary(sectionName, Optional propertyName) As Object
Public Function GA(sectionName, Optional propertyName)
Public Function GetArray(sectionName, Optional propertyName)
Format:
- 0 = TristateFalse - Default. Open the file as ASCII
- -1 = TristateTrue - Open the file as Unicode
- -2 = TristateUseDefault - Open the file using the system default
Public Format As Integer
Create the file if it does not exist
- True - Create
- False - Ignore
Public Create As Boolean
Public Function Export() As Object
Set FSO = CreateObject("Scripting.FileSystemObject")
Set ini = CreateObject("INIFile.INIFI")
ini.SetPath (FSO.GetAbsolutePathName(FSO.BuildPath(app.Path, app.EXEName & ".ini")))
ini.Create = True
ini.Format = -2 'Cyrillic
status = ini.SetCompareMode(vbTextCompare)
MsgBox CStr(ini.Load())