<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_TRPCBroker_Results</id>
	<title>RPC HELP TRPCBroker Results - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_TRPCBroker_Results"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_TRPCBroker_Results&amp;action=history"/>
	<updated>2026-05-13T21:17:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=RPC_HELP_TRPCBroker_Results&amp;diff=16586&amp;oldid=prev</id>
		<title>Kdtop: Created page with &quot;&lt;h2&gt;Results Property&lt;/h2&gt; Example  &lt;h3&gt;Applies to&lt;/h3&gt;     TRPCBroker component 	 &lt;h3&gt;Declaration&lt;/h3&gt;     prop...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_TRPCBroker_Results&amp;diff=16586&amp;oldid=prev"/>
		<updated>2015-07-04T18:58:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;h2&amp;gt;Results Property&amp;lt;/h2&amp;gt; &lt;a href=&quot;/index.php/RPC_HELP_TRPCBroker_Results_Example&quot; title=&quot;RPC HELP TRPCBroker Results Example&quot;&gt;Example&lt;/a&gt;  &amp;lt;h3&amp;gt;Applies to&amp;lt;/h3&amp;gt;     &lt;a href=&quot;/index.php/RPC_HELP_TRPCBroker&quot; title=&quot;RPC HELP TRPCBroker&quot;&gt;TRPCBroker&lt;/a&gt; component 	 &amp;lt;h3&amp;gt;Declaration&amp;lt;/h3&amp;gt;     prop...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h2&amp;gt;Results Property&amp;lt;/h2&amp;gt;&lt;br /&gt;
[[RPC_HELP_TRPCBroker_Results_Example|Example]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Applies to&amp;lt;/h3&amp;gt;&lt;br /&gt;
    [[RPC_HELP_TRPCBroker|TRPCBroker]] component&lt;br /&gt;
	&lt;br /&gt;
&amp;lt;h3&amp;gt;Declaration&amp;lt;/h3&amp;gt;&lt;br /&gt;
    property Results: Tstrings;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;br /&gt;
The Results design-time property contains the results of a [[RPC_HELP_TRPCBroker_Call_Method|Call]] method. In the case where the [[RPC_HELP_RPCs|RPC]] returns a single value, it will be returned in Results[0]. If a call returns a list of values, the Results property will be filled in the order the list collates on the VistA M Server. The Results property can only contain values of array elements – subscripts are not returned.&lt;br /&gt;
	&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
On the VistA M Server, the M routine constructs the list in the following sequence:&lt;br /&gt;
	&lt;br /&gt;
    S LIST(&amp;quot;CCC&amp;quot;)=&amp;quot;First&amp;quot;&lt;br /&gt;
    S LIST(1)=&amp;quot;Second&amp;quot;&lt;br /&gt;
    S LIST(&amp;quot;AAA&amp;quot;)=&amp;quot;Third&amp;quot;&lt;br /&gt;
    S LIST(2)=&amp;quot;Fourth&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
Before Broker returns the list to the client, M will re-sort it in alphabetical order:&lt;br /&gt;
	&lt;br /&gt;
    LIST(1)=&amp;quot;Second&amp;quot;&lt;br /&gt;
    LIST(2)=&amp;quot;Fourth&amp;quot;&lt;br /&gt;
    LIST(&amp;quot;AAA&amp;quot;)=&amp;quot;Third&amp;quot;&lt;br /&gt;
    LIST(&amp;quot;CCC&amp;quot;)=&amp;quot;First&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
On the client, the Results property will contain the following:&lt;br /&gt;
	&lt;br /&gt;
    brkrRPCBroker1.Results[0]=Second&lt;br /&gt;
    brkrRPCBroker1.Results[1]=Fourth&lt;br /&gt;
    brkrRPCBroker1.Results[2]=Third&lt;br /&gt;
    brkrRPCBroker1.Results[3]=First&lt;/div&gt;</summary>
		<author><name>Kdtop</name></author>
	</entry>
</feed>