<?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%2Fbinary</id>
		<title>IB Statements/binary - 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%2Fbinary"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/binary&amp;action=history"/>
		<updated>2026-04-19T00:45:22Z</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/binary&amp;diff=421&amp;oldid=prev</id>
		<title>Badge: New page: '''BINARY function'''   '''Syntax:'''  BINARY(string-argument)    '''Discussion:'''  The BINARY function returns 8 bytes for each character in the string-argument. The retured bytes repres...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/binary&amp;diff=421&amp;oldid=prev"/>
				<updated>2009-05-22T10:44:54Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;BINARY function&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  BINARY(string-argument)    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The BINARY function returns 8 bytes for each character in the string-argument. The retured bytes repres...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''BINARY function''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  BINARY(string-argument)  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The BINARY function returns 8 bytes for each character in the string-argument. The retured bytes represent the 8 bits in each character of the string-argument. If the bit is &amp;quot;on&amp;quot;, the corresponding byte will be &amp;quot;1&amp;quot;. If the bit is &amp;quot;off&amp;quot;, the corresponding byte will be &amp;quot;0&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
'''History:''' This function was added in Comet 504.  &lt;br /&gt;
&lt;br /&gt;
'''Example 1:'''  IF SUB(BINARY(FLAGBYTE$),1,1) = &amp;quot;1&amp;quot; GO EightyBitOn&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' &lt;br /&gt;
 LENGTH  5 &amp;amp; LOCAL ITEM1$&lt;br /&gt;
 LENGTH 40 &amp;amp; LOCAL ITEM2$&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 INPUT (0) ITEM1$&lt;br /&gt;
 &lt;br /&gt;
 ITEM2$ = BINARY(ITEM2$)&lt;br /&gt;
&lt;br /&gt;
In this example, a 5-byte string (ITEM$) is converted to it's binary equivalent, which results in a 40-byte string (ITEM2$).&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>