Main sections
INIGET$
wert$ = INIGET$(sektion$, schluessel$ [, nodata$])
Holt den Wert von "schluessel$" der Sektion "sektion$". Wenn entweder sektion$ oder schluessel$ nicht vorhanden sind, wird "NO_DATA" bzw. nodata$ zurückgegeben.
Bei sektion$ und schluessel$ spielt Groß-/Kleinschreibung keine Rolle.
Für weitere Informationen bitte bei INIOPEN nachsehen.
Example:
// Zus Sicherheit de Datei löschen
KILLFILE "test.ini"
INIOPEN "test.ini"
color$ = "Colors"
shape$ = "Shapes"
INIPUT color$, "red", 1
INIPUT color$, "green", 2
INIPUT shape$, "Circle", 1
INIPUT shape$, "Poly", "fine"
// schreibe "test.ini" auf die Platte
INIOPEN ""
// Jetzt nochmal von der Platte laden
INIOPEN "test.ini"
PRINT "Red = " + INIGET$(color$, "rEd"), 0, 0
PRINT "Poly = " + INIGET$(shape$, "polY"), 0, 20
PRINT "Nach dem Entfernen: ", 0, 50
// Color Sektion löschen
INIPUT color$, "", ""
// Poly Schlüssel löschen
INIPUT shape$, "pOLy", ""
// Nochmal anzeigen
PRINT "Red = " + INIGET$(color$, "Red"), 0, 70
PRINT "Poly = " + INIGET$(shape$, "PoLy"), 0, 90
SHOWSCREEN
MOUSEWAIT
Ausgabe:
Red = 1
Poly = fine
Nach dem Entfernen:
Red = NO_DATA
Poly = NO_DATA