Inifile.
Posted: Mon Jan 12, 2009 7:40 am
Hi,
I have been experimenting for the sake of learning, but i cannot seem to get an inifile to work.
The help notes notes give the following:
Methods:
DeleteKey(?section key?) ? ? ? ? ? ? ? ? ? ? ? ? ?Removes a value and the key from the inifile.
Erase(?section?) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? A group removal from the inifile.
Open(filename) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Opens or produce a new inifile.
ReadStr(?section key?) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Returns a STRING of the value, which is appropriate to the key.
WriteStr(?section key value?) ? ? ? ? ? ? ? ? ? Writes a value to the inifile.
However, when i try using any of the instructions i get build errors.
I found mention of "Special" subs/ functions, example READINI - Declare Sub Readini then add in CODE Sub READINI(). ?With my limited knowledge i cannot seem to get a working file.
Doe anyone have a working example for me to look at.
Regards,
Alan.
I have been experimenting for the sake of learning, but i cannot seem to get an inifile to work.
The help notes notes give the following:
Methods:
DeleteKey(?section key?) ? ? ? ? ? ? ? ? ? ? ? ? ?Removes a value and the key from the inifile.
Erase(?section?) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? A group removal from the inifile.
Open(filename) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Opens or produce a new inifile.
ReadStr(?section key?) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Returns a STRING of the value, which is appropriate to the key.
WriteStr(?section key value?) ? ? ? ? ? ? ? ? ? Writes a value to the inifile.
However, when i try using any of the instructions i get build errors.
I found mention of "Special" subs/ functions, example READINI - Declare Sub Readini then add in CODE Sub READINI(). ?With my limited knowledge i cannot seem to get a working file.
Doe anyone have a working example for me to look at.
Regards,
Alan.