array of structures in vb.net

poonam_almadi's Avatar, Join Date: Jan 2008
Newbie Member
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 shabbir; 15Jan2008 at 17:12.. Reason: Code block
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Code: VB
calculatorParameters.parameterOption