<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=F%24CVUI</id>
	<title>F$CVUI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=F%24CVUI"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=F$CVUI&amp;action=history"/>
	<updated>2026-04-30T12:02:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=F$CVUI&amp;diff=480&amp;oldid=prev</id>
		<title>Darya.zelenina: Created page with &quot;&#039;&#039;&#039;F$CVUI()&#039;&#039;&#039; is a lexical function that extracts bit fields from character string data and converts the result to an unsigned number.  =Syntax=  F$CVUI...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=F$CVUI&amp;diff=480&amp;oldid=prev"/>
		<updated>2019-04-05T09:01:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;F$CVUI()&amp;#039;&amp;#039;&amp;#039; is a &lt;a href=&quot;/Lexical_functions&quot; title=&quot;Lexical functions&quot;&gt;lexical function&lt;/a&gt; that extracts bit fields from character string data and converts the result to an unsigned number.  =Syntax=  F$CVUI...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;F$CVUI()&amp;#039;&amp;#039;&amp;#039; is a [[Lexical functions|lexical function]] that extracts bit fields from character string data and converts the result to an unsigned number.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&lt;br /&gt;
F$CVUI(start-bit,number-of-bits,string)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Start-bit&amp;#039;&amp;#039;&amp;#039; specifies the offset of the first bit to be extracted. The low-order (rightmost) bit of a string is position number 0.&lt;br /&gt;
&lt;br /&gt;
If you specify an expression with a negative value, or with a value that exceeds the number of bits in the string, DCL displays the INVRANGE error message.&lt;br /&gt;
&lt;br /&gt;
=Examples=&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ a = &amp;quot;a&amp;quot;&lt;br /&gt;
$ b = f$cvui(0,8,a)&lt;br /&gt;
$ show sym b&lt;br /&gt;
  B = 97   Hex = 00000061  Octal = 00000000141&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
In this example, symbol A stores an 8-bit value, which is 97 (the ASCII code for &amp;quot;a&amp;quot;). If we extract 8 bits from it into symbol B, 97 is extracted.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ write sys$output f$cvui(0,f$integer(p1),p2)&lt;br /&gt;
$ count = 0&lt;br /&gt;
$loop:&lt;br /&gt;
$ if count .eq. f$integer(p1) then exit&lt;br /&gt;
$ write sys$output f$cvui(count,1,p2)&lt;br /&gt;
$ count = count + 1&lt;br /&gt;
$ goto loop&lt;br /&gt;
$ exit&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This command procedure displays the value of [[P1]] bits of string [[P2]], then displays the bits one by one starting with the rightmost bit.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lexical Functions]]&lt;/div&gt;</summary>
		<author><name>Darya.zelenina</name></author>
	</entry>
</feed>