<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.stne.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
		<id>https://wiki.stne.net/index.php?action=history&amp;feed=atom&amp;title=API%3ACDataNodeList</id>
		<title>API:CDataNodeList - Versionsgeschichte</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.stne.net/index.php?action=history&amp;feed=atom&amp;title=API%3ACDataNodeList"/>
		<link rel="alternate" type="text/html" href="https://wiki.stne.net/index.php?title=API:CDataNodeList&amp;action=history"/>
		<updated>2026-04-07T18:38:33Z</updated>
		<subtitle>Versionsgeschichte für diese Seite in STNE-Wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>https://wiki.stne.net/index.php?title=API:CDataNodeList&amp;diff=16219&amp;oldid=prev</id>
		<title>SimonSlater am 20. August 2010 um 17:00 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.stne.net/index.php?title=API:CDataNodeList&amp;diff=16219&amp;oldid=prev"/>
				<updated>2010-08-20T17:00:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;? Nächstältere Version&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 20. August 2010, 17:00 Uhr&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;quot;Storage&amp;quot; ist hier vom Typ [[API:CDataNodeStorage|CDataNodeStorage]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;quot;Storage&amp;quot; ist hier vom Typ [[API:CDataNodeStorage|CDataNodeStorage]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;== Typisches Beispiel ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp; &amp;nbsp; Var Storage As New CDataNodeStorage('Mein Datenspeicher', 1);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp; &amp;nbsp; Storage.Items.Add('BerechtigteUser');&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp; &amp;nbsp; If( not Storage.Items.Item('BerechtigteUser').Items.ContainsKey(CStr(MyShip.UserID)))&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  Storage.Items.Item('BerechtigteUser').Items.Add(CStr(MyShip.UserID));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp; &amp;nbsp; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;An jeder Stelle wo ''Items'' steht wird eine {{Code|CDataNodeList}} &amp;quot;verwendet&amp;quot;. Diese Zeilen öffnen bzw. erstellen eine Datenbank mit dem Namen &amp;quot;Mein Datenspeicher&amp;quot;, fügen der obersten Ebene des Speichers (Ebenen siehe [[API:CDataNodeStorage|CDataNodeStorage]]) einen Knoten &amp;quot;BerechtigteUser&amp;quot; hinzu und fügen diesem Knoten (auch wieder über &amp;quot;Items&amp;quot;/{{Code|CDataNodeList}}) einen Unterknoten mit der UserID des Users der das Portal installiert hat hinzu. Vorher wird noch geprüft, ob dieser Knoten evtl. schon vorhanden ist (sollte immer gemacht werden sonst gibt es Laufzeitfehler).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SimonSlater</name></author>	</entry>

	<entry>
		<id>https://wiki.stne.net/index.php?title=API:CDataNodeList&amp;diff=16218&amp;oldid=prev</id>
		<title>SimonSlater: Erster Entwurf zu CDataNodeList</title>
		<link rel="alternate" type="text/html" href="https://wiki.stne.net/index.php?title=API:CDataNodeList&amp;diff=16218&amp;oldid=prev"/>
				<updated>2010-08-20T16:48:42Z</updated>
		
		<summary type="html">&lt;p&gt;Erster Entwurf zu CDataNodeList&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Vorlage:ApiMenu}}&lt;br /&gt;
&lt;br /&gt;
== Allgemein ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Code|CDataNodeList}} ist ein Listenobjekt, welches Objekte vom Typ [[API:CDataNode|CDataNode]] aufnimmt. Es ist das &amp;quot;Arbeitstier&amp;quot; der Datenbank-Verwaltung und kommt bei jeder Abfrage oder beim Schreiben in eine Datenbank vor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In den meisten Fällen erstellt man keine {{Code|CDataNodeList}} direkt, sondern erhält diese direkt aus einem [[API:CDataNodeStorage|CDataNodeStorage]] oder [[API:CDataNode|CDataNode]]:&lt;br /&gt;
&lt;br /&gt;
{{Code|Var Liste As New CDataNodeList;}}&lt;br /&gt;
&lt;br /&gt;
Parameter hat die &amp;quot;New&amp;quot; Funktion nicht. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Man kann nun entweder einzelne [[API:CDataNode|CDataNodes]] manuell zur Liste hinzufügen&lt;br /&gt;
&lt;br /&gt;
    Liste.Add(Node);&lt;br /&gt;
&lt;br /&gt;
wobei &amp;quot;Node&amp;quot; hier vom Typ [[API:CDataNode|CDataNode]] sein muss&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
oder man erstellt eine Liste aus einem [[API:CDataNode|CDataNode]]&lt;br /&gt;
&lt;br /&gt;
    Liste = Node.Items;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
oder übernimmt die oberste Ebene eines [[API:CDataNodeStorage|CDataNodeStorage]]&lt;br /&gt;
&lt;br /&gt;
    Liste = Storage.Items;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Storage&amp;quot; ist hier vom Typ [[API:CDataNodeStorage|CDataNodeStorage]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Methoden ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Die wichtigsten Eigenschaften oder Methoden sind die folgenden:&lt;br /&gt;
{| cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
! Methode !! Erklärung&lt;br /&gt;
|-&lt;br /&gt;
| Add || Fügt einen [[API:CDataNode|CDataNode]] ein. Es gbt dabei mehrere Möglichkeiten (siehe Objektexplorer)&lt;br /&gt;
|-&lt;br /&gt;
| AddDate || Nützlich um Objekte vom Typ [[API:Date|Date]] hinzuzufügen. Es gibt noch weitere Add-Methoden im Objektexplorer aufgelistet.&lt;br /&gt;
|-&lt;br /&gt;
| Clear || Löscht den Listeninhalt ('''VORSICHT:''' Es werden auch alle Unterknoten gelöscht!)&lt;br /&gt;
|-&lt;br /&gt;
| ContainsKey || Sehr wichtig. Übernimmt einen [[API:String|String]] und gibt einen [[API:Boolean|Boolean]]-Wert zurück ob der Knoten mit diesem Namen in der Liste ist&lt;br /&gt;
|-&lt;br /&gt;
| Count || Gibt einen [[API:Integer|Integer]]-Wert zurück mit der Anzahl der Knoten in der Liste&lt;br /&gt;
|-&lt;br /&gt;
| Item || Gibt den entsprechenden [[API:CDataNode|CDataNode]] zurück. Beispiel: '''Storage.Items.Item('Knoten');''' (siehe [[API:CDataNodeStorage|CDataNodeStorage]])&lt;br /&gt;
|-&lt;br /&gt;
| Parent || Liefert den übergeordneten [[API:CDataNode|CDataNode]] zurück.&lt;br /&gt;
|-&lt;br /&gt;
| Remove || Löscht einen bestimmten [[API:CDataNode|CDataNode]] in der Liste.&lt;br /&gt;
|-&lt;br /&gt;
| Rename || Benennt einen [[API:CDataNode|CDataNode]] aus der Liste um.&lt;br /&gt;
|}&lt;br /&gt;
Die vollständige Liste findest du direkt im Objektexplorer unter (http://game.stne.net/ObjectExplorer.aspx?p=CDataNodeList)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[Spieler:SimonSlater|SimonSlater]] 16:28, 20. Aug. 2010 (CEST)&lt;/div&gt;</summary>
		<author><name>SimonSlater</name></author>	</entry>

	</feed>