<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Xor in vb.net' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Xor in vb.net' posted on the 'Basic' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Fri, 24 May 2013 23:06:17 -0700</pubDate>
    <lastBuildDate>Fri, 24 May 2013 23:06:17 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Xor in vb.net</title>
      <link>http://www.programmersheaven.com/mb/basic/394596/394596/xor-in-vbnet/</link>
      <description>&lt;span style="font-size: large;"&gt;Hi, i'm having the next code in order to send some serial commands to a machine:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="color: Blue;"&gt;Private Sub butSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butSend.Click&lt;br /&gt;
        Dim COMMAND As String&lt;br /&gt;
        Dim STX As Byte&lt;br /&gt;
        Dim ETX As Byte&lt;br /&gt;
        STX = 2&lt;br /&gt;
        ETX = 3&lt;br /&gt;
        SerialPort1.Write(Convert.ToChar(STX))&lt;br /&gt;
        COMMAND = "01RS"&lt;br /&gt;
        SerialPort1.Write(COMMAND)&lt;br /&gt;
        SerialPort1.Write(Convert.ToChar(ETX))&lt;br /&gt;
        &lt;span style="color: Orange;"&gt;SerialPort1.Write(Convert.ToChar(3))&lt;/span&gt;&lt;br /&gt;
        SerialPort1.Write(Convert.ToChar(127))&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;/span&gt;&lt;/span&gt;[/size][/color]&lt;br /&gt;
In this code, i need to xor the "STX" byte with the "COMMAND" string&lt;br /&gt;
and to replace the "SerialPort1.Write(Convert.ToChar(&lt;span style="color: Red;"&gt;3&lt;/span&gt;))" &lt;br /&gt;
with the result of the calculation.&lt;br /&gt;
In this code the 3 belongs to the result of the STX byte xor the "01RS". So i want every time to calculate the XOR because COMMAND is changing.&lt;br /&gt;
Thank all of you in advance.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/basic/394596/394596/xor-in-vbnet/</guid>
      <pubDate>Mon, 03 Aug 2009 09:30:29 -0700</pubDate>
      <category>Basic</category>
    </item>
  </channel>
</rss>