Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   array of structures in vb.net (http://www.go4expert.com/forums/array-structures-vbnet-t8262/)

poonam_almadi 15Jan2008 11:31

array of structures in vb.net
 
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


pradeep 21Jan2008 17:11

Re: array of structures in vb.net
 
Code: VB

calculatorParameters.parameterOption



All times are GMT +5.5. The time now is 06:08.