<?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=Get_val_Spell_method</id>
		<title>Get val Spell method - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Get_val_Spell_method"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Get_val_Spell_method&amp;action=history"/>
		<updated>2026-07-28T11:54:46Z</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=Get_val_Spell_method&amp;diff=4331&amp;oldid=prev</id>
		<title>Kowy: New page: __NOTOC__ Category:Customizations Category:r6 Category:r11 Category:r12 Category:Spell Code {{Global Header}} {{Global Announcement}} == Overview == This method gets va...</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Get_val_Spell_method&amp;diff=4331&amp;oldid=prev"/>
				<updated>2011-06-03T12:35:51Z</updated>
		
		<summary type="html">&lt;p&gt;New page: __NOTOC__ &lt;a href=&quot;/wiki/index.php?title=Category:Customizations&quot; title=&quot;Category:Customizations&quot;&gt;Category:Customizations&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R6&quot; title=&quot;Category:R6&quot;&gt;Category:r6&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R11&quot; title=&quot;Category:R11&quot;&gt;Category:r11&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R12&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:R12 (page does not exist)&quot;&gt;Category:r12&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:Spell_Code&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Spell Code (page does not exist)&quot;&gt;Category:Spell Code&lt;/a&gt; {{Global Header}} {{Global Announcement}} == Overview == This method gets va...&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:r6]]&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 gets value of some single (not REL) attribute and returns it. It also preserves datatype of column. It is suitable for accessing attributes with reserved name (bool, function, class...), n-th item of multivalue (group.member_list.0.combo_name) or dynamic reading, where attribute name is in variable.&lt;br /&gt;
&lt;br /&gt;
This action can be called in [[Spel_Reference_Guide|spell code]] in method [[send_wait]] for [[Send_WaitCall_Attr|call_attr]].&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 top_object, &amp;quot;call_attr&amp;quot;, string attr_name, &amp;quot;get_val&amp;quot;)&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;
* top_object - object where the attribute is placed&lt;br /&gt;
* attr_name - name of attribute which value should be get&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
On success attribute value is in the first position of global array '''msg'''.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
retval = msg[0];&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Part of code to read group members&lt;br /&gt;
for( iLoop = 0; iLoop &amp;lt; member_count; iLoop++ ) {&lt;br /&gt;
    send_wait(0, some_group, &amp;quot;call_attr&amp;quot;, format(&amp;quot;member_list.%d.combo_name&amp;quot;,iLoop), &amp;quot;get_val&amp;quot;);&lt;br /&gt;
    if (msg_error()) {&lt;br /&gt;
        logf(ERROR, &amp;quot;%s: error in get_val: %s&amp;quot;, method, msg[0]);&lt;br /&gt;
        continue;&lt;br /&gt;
    }&lt;br /&gt;
    member_name = msg[0];&lt;br /&gt;
    ....&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	</feed>