<?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%2Ftestbit</id>
		<title>IB Statements/testbit - 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%2Ftestbit"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/testbit&amp;action=history"/>
		<updated>2026-04-20T10:22:54Z</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/testbit&amp;diff=417&amp;oldid=prev</id>
		<title>Badge: New page: '''TESTBIT function'''   '''Discussion:'''  The TESTBIT function returns the value of a specified bit in a string expression.    '''Syntax:'''  Result = TESTBIT(string-expression, bit-loca...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/testbit&amp;diff=417&amp;oldid=prev"/>
				<updated>2009-05-22T10:32:49Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;TESTBIT function&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The TESTBIT function returns the value of a specified bit in a string expression.    &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  Result = TESTBIT(string-expression, bit-loca...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''TESTBIT function''' &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The TESTBIT function returns the value of a specified bit in a string expression.  &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  Result = TESTBIT(string-expression, bit-location [,EXCP=label])&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
Result is the value (0 or 1) of the bit at the specified bit-location.&lt;br /&gt;
&lt;br /&gt;
String-expression is a string value encoded in binary form.&lt;br /&gt;
&lt;br /&gt;
Bit-location is a numeric value specifying the bit that is to be set.&lt;br /&gt;
&lt;br /&gt;
Bits are 0-based and are ordered according to the following scheme:&lt;br /&gt;
&lt;br /&gt;
If the string-expression contains 8 bits, they are ordered:&lt;br /&gt;
&lt;br /&gt;
7 6 5 4 3 2 1 0&lt;br /&gt;
&lt;br /&gt;
If the string-expression contains 16 bits, they are ordered:&lt;br /&gt;
&lt;br /&gt;
7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8&lt;br /&gt;
&lt;br /&gt;
If the string-expression contains 24 bits, they are ordered:&lt;br /&gt;
&lt;br /&gt;
7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 23 22 21 20 19 18 17 16&lt;br /&gt;
&lt;br /&gt;
An exception occurs if the program attempts to test a bit beyond the declared length of the string-expression.  &lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
 A$ = “@7FA5@”&lt;br /&gt;
 !&lt;br /&gt;
 FOR I = 0 TO 15&lt;br /&gt;
 Result = TESTBIT(A$,I,EXCP=9999)&lt;br /&gt;
 Print “Bit”;I;”is”;Result&lt;br /&gt;
 NEXT I&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>