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

Reputation: 114 Stalwart
Group:
Contributors
Active Posts:
626 (0.25 per day)
Joined:
01-October 08
Profile Views:
9,036
Last Active:
User is offline Aug 31 2015 04:11 AM
Currently:
Offline

Previous Fields

Country:
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:
50

Latest Visitors

Icon   dbasnett has not set their status

Posts I've Made

  1. 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.
  2. 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:

    <Manufacturers>
      <Manufacturer>
        <mfgname>Mfg. One</mfgname>
        <flavorings>
          <flavor>
            <flavorname>Water</flavorname>
            <base>Misc.</base>
            <weight unit="lbs.">1.00</weight>
          </flavor>
          <flavor>
            <flavorname>Vodka</flavorname>
            <base>Misc.</base>
            <weight unit="ozs.">1.00</weight>
          </flavor>
        </flavorings>
      </Manufacturer>
    </Manufacturers>
    


    In the long run you might be happier with this structure. Note how I used an attribute for weight.
  3. In Topic: Please help me with Nested Classes

    Posted 16 Jun 2015

    View PostTheZamundaPrince, on 15 June 2015 - 11:16 PM, said:

    View Postmaj3091, on 14 June 2015 - 10:16 PM, said:

    You should really be in the VB.Net forum with this, as it's not VB6.

    Maybe you could tell us the exact error message and the line it occurs on...the more information you give, the easier it will be to provide an answer.


    The error comes when I click the button once and the text boxes are cleared.

    myBox.mline1 = New Line() generates an error message "Object reference not set to an instance of an object."

    I'm thinking there's a problem with the way I've called the nested classes after declaring them.


    You need to start with creating an instance of myBox.
  4. In Topic: put ip address in textBox what to add more?

    Posted 15 Jun 2015

    Here is an example using one textbox and one label. The user must enter an IP address that is in the 192.168.42.x network. To test create a form with one textbox and one label with the default names.

    Public Class Form1
    
        Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
            Dim someIP As Net.IPAddress
    
            'did user enter an ip address
            If Net.IPAddress.TryParse(TextBox1.Text, someIP) Then
                'looks like an address
                'is it in 192.168.42
                Dim b() As Byte = someIP.GetAddressBytes
                If b(0) = 192 AndAlso b(1) = 168 AndAlso b(2) = 42 Then
                    Label1.Text = "valid IP Address"
                Else
                    Label1.Text = "invalid IP Address"
                End If
            Else
                Label1.Text = "Not an IP Address"
            End If
        End Sub
    
        Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
            Label1.Text = "Enter IP Address"
        End Sub
    End Class
    
    
  5. In Topic: put ip address in textBox what to add more?

    Posted 12 Jun 2015

    View Postmercy_angel, on 12 June 2015 - 01:04 PM, said:

    Yes, its me there.

    Can i just done with 4 textBoxes, or you recommend me to do otherwise?


    What does the user want? My experience is that having users type an entire address in one textbox is the way to go.

My Information

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

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Comments

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