<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TIniFile.Clear</id>
		<title>TIniFile.Clear - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TIniFile.Clear"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TIniFile.Clear&amp;action=history"/>
		<updated>2026-05-06T02:00:56Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=TIniFile.Clear&amp;diff=1129&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TIniFile.Clear&amp;diff=1129&amp;oldid=prev"/>
				<updated>2013-08-23T01:17:21Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''procedure Clear();'''&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This procedure deletes all entries in a [[TIniFile]], including empty and commented lines.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
''example.ini'' in soldatserver's root folder:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[Section1]&lt;br /&gt;
Key1=1&lt;br /&gt;
Key2=&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
actual script code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  l: TStringList;&lt;br /&gt;
  ini: TIniFile;&lt;br /&gt;
  i: integer;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
  l := File.CreateStringList();&lt;br /&gt;
  // assuming Sandbox Level &amp;lt; 2&lt;br /&gt;
  ini := File.CreateINI('example.ini');&lt;br /&gt;
  ini.Clear;&lt;br /&gt;
  &lt;br /&gt;
  ini.GetStrings(l);&lt;br /&gt;
  for i:=0 to l.Count-1 do&lt;br /&gt;
    WriteLn('&amp;gt;&amp;gt; '+l[i]); // nothing will be displayed since it's all gone&lt;br /&gt;
  &lt;br /&gt;
  l.Free;&lt;br /&gt;
  ini.Free;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:TIniFile]]&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>