comnik.inimod: Functions Types Modinfo Source  

INI Modul.

Modul to handle with *.ini files. License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software And associated documentation files (the "Software"), To deal in" the Software without restriction, including without limitation the rights To use, copy, modify, merge, publish, distribute, sublicense, And/Or sell copies of the Software, And To permit persons To whom the Software is furnished To do so, subject To the following conditions:

The author Nikolas Göbel has To be by name mentioned."

Functions Summary

AddField Adds a new field to the .ini File.
AddKey Adds a new key + it's value to the .ini File.
GetFloat Reads a specified value from the .ini file and wraps it into a float variable.
GetInt Reads a specified value from the .ini file and wraps it into a integer variable.
GetValue Reads a specified value from the .ini file.
OpenIni Opens a .ini File.
SaveIni Saves the .ini File.
SetKeyValue Sets the Value of a speciefied key in the .ini File.

Types Summary

TIni INI Class.

Functions

Function AddField:Byte(ini:TIni,name:String)
ReturnsTrue, if succesfull.
DescriptionAdds a new field to the .ini File.

Function AddKey:Byte(ini:TIni,_field:String,name:String,_value:String="")
ReturnsTrue, if succesfull.
DescriptionAdds a new key + it's value to the .ini File.

Function GetFloat:Float(ini:TIni,_field:String,_value:String)
ReturnsA 'Float' variable.
DescriptionReads a specified value from the .ini file and wraps it into a float variable.
InformationThe 'data' array is searched for the given value.

Function GetInt:Int(ini:TIni,_field:String,_value:String)
ReturnsA 'Int' variable.
DescriptionReads a specified value from the .ini file and wraps it into a integer variable.
InformationThe 'data' array is searched for the given value.

Function GetValue:String(ini:TIni,_field:String,_value:String)
ReturnsA 'String' variable.
DescriptionReads a specified value from the .ini file.
InformationThe 'data' array is searched for the given value.

Function OpenIni:TIni(filename:String)
ReturnsA TIni Object Handle.
DescriptionOpens a .ini File.
InformationA .ini File is opend And it's value is stored in the 'data' array.

Function SaveIni:Byte(ini:TIni)
ReturnsTrue, if succesfull.
DescriptionSaves the .ini File.
InformationUse this Function after all changes to the .ini File are done.

Function SetKeyValue:Byte(ini:TIni,_field:String,_key:String,_value:String="")
ReturnsTrue, if succesfull.
DescriptionSets the Value of a speciefied key in the .ini File.
InformationSearchs the .ini Fiel for the given key. - And sets it's Value. - If the given key DOESE'NT exists, it'll be created. - If the key-value already EXISTS, the value 'll be overwritten. - If no key is given, a new key with value = 0 'll be created.

Types

Type TIni
DescriptionINI Class.
InformationContains the data array for *.ini files.

Module Information

DescriptionWith this INI Module, you'll be able to parse and write .ini Files in a very Easy Way!
Version1.0
AuthorNikolas Göbel
LicenseFreeware
CopyrightNikolas Göbel