dbasnett's Profile User Rating: -----

Reputation: 115 Stalwart
Active Posts:
629 (0.23 per day)
01-October 08
Profile Views:
Last Active:
User is offline Apr 29 2016 04:01 AM

Previous Fields

Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   dbasnett has not set their status

Posts I've Made

  1. In Topic: Sending ASCII 7-bit Code to Serialport

    Posted 19 Dec 2015

    Gives this a try. Pay attention to the comment.

            Dim query As String = tbxpv.Text
            Dim byteslist As New List(Of Byte)
            byteslist.Add(4)  'EOT
            byteslist.Add(48) '0
            byteslist.Add(49) '1
            byteslist.Add(2)  'STX
            byteslist.Add(83) 'S
            byteslist.Add(49) '1       
            byteslist.Add(46)  '.
            byteslist.Add(48)  '0
            byteslist.Add(3)   'ETX
            Dim bcc As Integer
            'if etx is part of calc change  byteslist.Count - 2 to  byteslist.Count - 1
            For x As Integer = 4 To byteslist.Count - 2
                bcc = bcc Xor byteslist(x)
            Dim buff() As Byte = byteslist.ToArray
  2. In Topic: I LOVE THIS SITE

    Posted 29 Oct 2015

    For months I have not been able to get to this site. Browser crashes, spinner only, etc. It happens on IE and Firefox at home and work.

    Today I took a shot at trying to click something before the browser crashed and made it here.

    Sorry for being OT.

    Miss reading the posts here. Will check back periodically. Wonder if this will post.
  3. In Topic: How to convert string to byte ASCII ?

    Posted 8 Sep 2015

    Searching MSDN I found three codepages with Thai in the name. I tried number 874 and it seems to convert.

            Dim thai As String = "ลงชื่อ"
            Dim b() As Byte = System.Text.Encoding.GetEncoding(874).GetBytes(thai)
  4. In Topic: Inserting data into XML - alphabetized?

    Posted 16 Aug 2015

    The attribute was to illustrate when attributes should be used. I think the quote about the usage of elements v. attributes is one of the best I have seen. If there are specific problems you have using properly structured XML you should ask.

    Whether or not you use a centralized DB or distribute an XML file is up to you. If you have the resources to centralize the information is key; do you have a public presence on the web. How often is the data changed? How big is a "really large xml file"?

    I have a database that has a table that has a column that is XML.
  5. In Topic: Inserting data into XML - alphabetized?

    Posted 16 Aug 2015

    Before going much further it would be a good idea to consider a different XML design. In this, Principles of XML design: When to use elements versus attributes, you will find this, "If you consider the information in question to be part of the essential material that is being expressed or communicated in the XML, put it in an element." Given those guidelines maybe something like this would be better:

        <mfgname>Mfg. One</mfgname>
            <weight unit="lbs.">1.00</weight>
            <weight unit="ozs.">1.00</weight>

    In the long run you might be happier with this structure. Note how I used an attribute for weight.

My Information

Member Title:
D.I.C Addict
Age Unknown
July 29
Years Programming:

Contact Information

Website URL:
Website URL  http://



dbasnett has no profile comments yet. Why not say hello?