<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Frsub</id>
		<title>IB Statements/rsub - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Frsub"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/rsub&amp;action=history"/>
		<updated>2026-04-19T00:40:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/rsub&amp;diff=436&amp;oldid=prev</id>
		<title>Badge: New page: '''RSUB function'''   '''Syntax:'''  RSUB(string-argument, position, length)    '''Discussion:'''  The RSUB function returns a substring from the right-hand side of the specified string-ar...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/rsub&amp;diff=436&amp;oldid=prev"/>
				<updated>2009-05-22T11:19:25Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;RSUB function&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  RSUB(string-argument, position, length)    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The RSUB function returns a substring from the right-hand side of the specified string-ar...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''RSUB function''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  RSUB(string-argument, position, length)  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The RSUB function returns a substring from the right-hand side of the specified string-argument. &lt;br /&gt;
This function operates on the current length of the string-argument, rather than the defined length. &lt;br /&gt;
&lt;br /&gt;
The string-argument may be a string constant, a single-element string variable, a string array element, a string expression, or a string function. &lt;br /&gt;
&lt;br /&gt;
The position may be a numeric constant, a single-element numeric variable, a numeric array element, a numeric expression, or a numeric function. This parameter represents the rightmost position of the string-argument. &lt;br /&gt;
&lt;br /&gt;
The length may be a numeric constant, a single-element numeric variable, a numeric array element, a numeric expression, or a numeric function. This parameter represents the number of characters to be returned by the RSUB function. &lt;br /&gt;
&lt;br /&gt;
Also see SUB. &lt;br /&gt;
 &lt;br /&gt;
'''Example 1:'''  ZIP$ = RSUB(ADDRESS2$,1,5)&lt;br /&gt;
&lt;br /&gt;
This example uses the RSUB function to return the last five characters of data from the variable named ADDRESS2$. The position is set to 1, indicating the right side of the string-argument. The length is set to 5, indicating the number of characters to be returned by the RSUB function. &lt;br /&gt;
&lt;br /&gt;
If the value of ADDRESS2$ equals &amp;quot;Sebastopol, CA 95472&amp;quot;, then the value of ZIP$ will equal &amp;quot;95472&amp;quot; -- the righthand 5 bytes of the field. &lt;br /&gt;
 &lt;br /&gt;
'''Example 2:'''  IF RSUB$(ADDRESS2$,1,5) = &amp;quot;95472&amp;quot; THEN PRINT (0) &amp;quot;Sebastopol&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This example shows how the RSUB function can be used in-line with an IF statement. In this case, the RSUB function returns the last five characters of the variable named ADDRESS2$ (see Example 1 above).&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>