<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Attrs_by_index</id>
		<title>Attrs by index - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Attrs_by_index"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Attrs_by_index&amp;action=history"/>
		<updated>2026-07-28T12:17:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Attrs_by_index&amp;diff=4548&amp;oldid=prev</id>
		<title>Kowy at 14:11, 16 March 2012</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Attrs_by_index&amp;diff=4548&amp;oldid=prev"/>
				<updated>2012-03-16T14:11:41Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:11, 16 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Results ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Results ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On success the resulted list is filled into a global array '''msg''' as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On success the resulted list is filled into a global array '''msg''' as follows:&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg[0] - SD system attribute used for enumeration (NEXT or EOF can be here)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg[0] - SD system attribute used for enumeration (NEXT&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, LAST &lt;/ins&gt;or EOF can be here)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg[1] - item Persistent ID&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg[1] - item Persistent ID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg[2] - empty?&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* msg[2] - empty?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Attrs_by_index&amp;diff=4529&amp;oldid=prev</id>
		<title>Kowy: attrs_by_index</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Attrs_by_index&amp;diff=4529&amp;oldid=prev"/>
				<updated>2012-03-01T15:17:29Z</updated>
		
		<summary type="html">&lt;p&gt;attrs_by_index&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Customizations]]&lt;br /&gt;
[[Category:r11]]&lt;br /&gt;
[[Category:r12]]&lt;br /&gt;
[[Category:Spell Code]]&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
== Overview ==&lt;br /&gt;
This method can be used to fetch attributes from a recordset just returned from [[Send_WaitCall_attrSync_fetch|sync_fetch]] and it should be faster then [[dob_by_index|dob_by_index]] method, because it doesn't need to create full dob in memory, but only specified attributes. It can be called in [[Spel_Reference_Guide|Spell Code]] using [[send_wait]] method.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
void send_wait (int timeout, object recordset, &amp;quot;attrs_by_index&amp;quot;, int start_index, int end_index, &amp;quot;DEFAULT&amp;quot;, int attrs_num [, var attrs])&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* ''timeout'' - how long (?in seconds?) should the method wait for finishing the method (0 means infinite)&lt;br /&gt;
* ''recordset'' - object returned from [[Send_WaitCall_attrSync_fetch|sync_fetch]] method&lt;br /&gt;
* ''start_index'' - from which index do you want to iterate? Must by between 0 and item_count-1&lt;br /&gt;
* ''end_index'' - to which index do you want to iterate? Must by between 0 and item_count-1&lt;br /&gt;
* ''attrs_num'' - number of following  attributes&lt;br /&gt;
* ''attributes'' - each attribute of fetched object you want to return should be passed its name as a string here&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
On success the resulted list is filled into a global array '''msg''' as follows:&lt;br /&gt;
* msg[0] - SD system attribute used for enumeration (NEXT or EOF can be here)&lt;br /&gt;
* msg[1] - item Persistent ID&lt;br /&gt;
* msg[2] - empty?&lt;br /&gt;
* msg[3] - index in the recordset&lt;br /&gt;
* msg[4] - number of returned attributes (should be same as attrs_num)&lt;br /&gt;
* msg[5] - value of the first asked attribute&lt;br /&gt;
* msg[6] - value of the second asked attribute&lt;br /&gt;
* ...&lt;/div&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	</feed>