<?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_BROKER_RTRNFMT_XWBLIB</id>
	<title>RPC HELP BROKER RTRNFMT XWBLIB - 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_BROKER_RTRNFMT_XWBLIB"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_BROKER_RTRNFMT_XWBLIB&amp;action=history"/>
	<updated>2026-04-11T18:52:26Z</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_BROKER_RTRNFMT_XWBLIB&amp;diff=16694&amp;oldid=prev</id>
		<title>Kdtop: Created page with &quot; RPC Broker Help Home &lt;h2&gt;$$RTRNFMT^XWBLIB&lt;/h2&gt; Use this function in the M code called by an RPC to change the return value type that the RPC will return o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_BROKER_RTRNFMT_XWBLIB&amp;diff=16694&amp;oldid=prev"/>
		<updated>2015-07-06T01:16:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/RPC_Broker_Help&quot; title=&quot;RPC Broker Help&quot;&gt; RPC Broker Help Home&lt;/a&gt; &amp;lt;h2&amp;gt;$$RTRNFMT^XWBLIB&amp;lt;/h2&amp;gt; Use this function in the M code called by an RPC to change the return value type that the RPC will return o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[RPC_Broker_Help| RPC Broker Help Home]]&lt;br /&gt;
&amp;lt;h2&amp;gt;$$RTRNFMT^XWBLIB&amp;lt;/h2&amp;gt;&lt;br /&gt;
Use this function in the M code called by an RPC to change the return value type that the RPC will return on the fly.&lt;br /&gt;
	&lt;br /&gt;
&amp;lt;h3&amp;gt;Format&amp;lt;/h3&amp;gt;&lt;br /&gt;
    $$RTRNFMT^XWBLIB(type, wrap)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Input&amp;lt;/h3&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;:  Set this to the RETURN VALUE TYPE to change the RPC&amp;#039;s setting to. You can set it to one of the following numeric or free text values:&lt;br /&gt;
** numeric  -- free text&lt;br /&gt;
** 1 -- SINGLE VALUE&lt;br /&gt;
** 2 -- ARRAY&lt;br /&gt;
** 3 -- WORD PROCESSING&lt;br /&gt;
** 4 -- GLOBAL ARRAY&lt;br /&gt;
** 5 -- FOR GLOBAL INSTANCE&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;wrap&amp;#039;&amp;#039;&amp;#039;:  Set to 1 to set the RPC&amp;#039;s WORD WRAP ON setting to True; set to 0 to set the RPC&amp;#039;s WORD WRAP ON setting to False.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Output&amp;lt;/h3&amp;gt;&lt;br /&gt;
Return Value 0 if the return value type could not be changed; otherwise, the numeric code representing the return value type that the RPC is changed to.&lt;br /&gt;
	&lt;br /&gt;
&amp;lt;h3&amp;gt;Example&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    IF &amp;#039;$$RTRNFMT^XWBLIB(&amp;quot;ARRAY&amp;quot;,1) DO&lt;br /&gt;
    . ; branch to code if can&amp;#039;t change RPC type&lt;/div&gt;</summary>
		<author><name>Kdtop</name></author>
	</entry>
</feed>