Function CloseFBini() As bool
Функция закрывает открытый файл настроек. Эта функцию необходимо использовать, иначе никакого сохранения в файл не будет!
нет
Windows , Linux
#Include "window9.bi"
If CreateFBini("prefar.ini")<> -1 Then
Dim As String ss="hello"
Dim As Integer32 ii=76
WriteGroupFBini("Group1")
WriteGroupFBini("Group2")
WriteValueFBini("Group1","Key",ss)
WriteValueFBini("Group2","Key",ii)
CloseFBini()
EndIf
If OpenFBini("prefar.ini",1) <> -1 Then
? ReadStringValueFBini("Group1","Key")
? ReadIntegerValueFBini("Group2","Key")
?
Dim as STRING sz = "Hello world"
WriteValueFBini("Group1","Key",sz)
WriteValueFBini("Group2","Key",Cast(Integer32,90))
? ReadStringValueFBini("Group1","Key")
? ReadIntegerValueFBini("Group2","Key")
CloseFBini()
Sleep()
EndIf
hello
76
Hello world
90
Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease