array of structures in vb.net

Discussion in 'Visual Basic ( VB )' started by poonam_almadi, Jan 15, 2008.

  1. poonam_almadi

    poonam_almadi New Member

    Joined:
    Jan 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello Everyone
    I have made a structure by name structureCalculatorParameterOption .i know how to access variables declared in this structure.
    Again i have made a 2nd structure by name structureCalculatorParameters In this 2nd structure i declare the variable of type Ist structure i.e
    structureCalculatorParameterOption.How to access it?
    I have declared a array of 2nd structuretype .How to access this array?

    code for structure Declaration:--------------------
    Code:
    Structure structureCalculatorParameters
            Public parameterName As String
            Public parameterOption As structureCalculatorParameterOption()
        End Structure
    
    
        Structure structureCalculatorParameterOption
            Public optionName As String
            Public perThousandWeight As Double
            Public showAsOption As Boolean
            Public billingType As enumBillingTypes
            Public setupCost As Double
            Public costPerBillingUnit As Double
            Public minCharge As Double
            Public minQuantity As Double
            Public maxQuantity As Double
        End Structure
    
      Public calculatorParameters As structureCalculatorParameters() 'array of the calculator parameters
     
    Last edited by a moderator: Jan 15, 2008
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Code:
    calculatorParameters.parameterOption
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice