1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Code:
    calculatorParameters.parameterOption
     

Share This Page