<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696965</guid>
        <pubDate>Thu, 08 Dec 2016 07:03:58 +0000</pubDate>
        <title>VBS: array of unsigned bytes</title>
        <link>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696965</link>
        <description><![CDATA[leo: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=410024&view=findpost&p=3696836'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>trident &#064; <time class="tag-quote__quoted-time" datetime="2016-12-07T00:50:18+03:00">06.12.16, 21:50</time></span><div class='quote '>Как обратиться к элементу массива беззнаковых байтов?</div></div><br>
Как обычно, по индексу - b(0), b(1) и т.д.<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=410024&view=findpost&p=3696836'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>trident &#064; <time class="tag-quote__quoted-time" datetime="2016-12-06T21:50:18+00:00">06.12.16, 21:50</time></span><div class='quote '>MsgBox Chr(b)<br>
вызывает ошибку &quot;Несоответствие типa: b&quot;</div></div><br>
Используй Chr(b(0))<br>
Только не понятно, зачем тебе это нужно, если можно сразу получить ответ в виде строки через responseText?<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=410024&view=findpost&p=3696836'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>trident &#064; <time class="tag-quote__quoted-time" datetime="2016-12-06T21:50:18+00:00">06.12.16, 21:50</time></span><div class='quote '>MsgBox b<br>
показывает какой то мусор.</div></div><br>
Похоже, что MsgBox b интерпритирует массив байтов (например, текст в кодировке utf-8) как массив двухбайтовых Unicode-символов - в итоге получается мусор]]></description>
        <author>leo</author>
        <category>Прочие языки программирования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696891</guid>
        <pubDate>Wed, 07 Dec 2016 10:43:10 +0000</pubDate>
        <title>VBS: array of unsigned bytes</title>
        <link>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696891</link>
        <description><![CDATA[trident: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=410024&view=findpost&p=3696849'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>xNut &#064; <time class="tag-quote__quoted-time" datetime="2016-12-07T05:44:16+00:00">07.12.16, 05:44</time></span><div class='quote '>Chr переводит число в символ<br>
А какого чуда вы ждёте от Chr? </div></div><br>
Что он переведет беззнаковый байт в соответствующий ему символ.]]></description>
        <author>trident</author>
        <category>Прочие языки программирования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696849</guid>
        <pubDate>Wed, 07 Dec 2016 05:44:16 +0000</pubDate>
        <title>VBS: array of unsigned bytes</title>
        <link>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696849</link>
        <description><![CDATA[xNut: Chr переводит число в символ<br>А какого чуда вы ждёте от Chr?]]></description>
        <author>xNut</author>
        <category>Прочие языки программирования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696836</guid>
        <pubDate>Tue, 06 Dec 2016 21:50:18 +0000</pubDate>
        <title>VBS: array of unsigned bytes</title>
        <link>https://forum.sources.ru/index.php?showtopic=410024&amp;view=findpost&amp;p=3696836</link>
        <description><![CDATA[trident: Как обратиться к элементу массива беззнаковых байтов?<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Set oXMLHTTP = CreateObject(&quot;WinHttp.WinHttpRequest.5.1&quot;)</div><div class="code_line">oXMLHTTP.Open &quot;GET&quot;, URL, 0</div><div class="code_line">oXMLHTTP.Send</div><div class="code_line">b = oXMLHTTP.responseBody(0)</div><div class="code_line">MsgBox b</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
показывает какой то мусор.<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">MsgBox Chr(b)</div></ol></div></div></div></div><br>
вызывает ошибку &quot;Несоответствие типa: b&quot;<br>
<br>
В MSDN сказано, что responseBody &quot;Retrieves the response entity body as an array of unsigned bytes.&quot;<br>
Как получить значения его произвольных элементов?]]></description>
        <author>trident</author>
        <category>Прочие языки программирования</category>
      </item>
	
      </channel>
      </rss>
	