Quantcast
Viewing all articles
Browse latest Browse all 27400

Properties

Question, I having issues setting either a list of strings, list of structs, or a list of classes in the design time. I had a more successfully with a class, but it won't save any data. Here an ex of what I taking about:

Code:

Public Structure sCalculationInfo
    Property Caption As String
    Property Value As String
End Structure

Public Class UCPMCalculationFields

    Public Class cCalculationInfo
        Property Caption As String
        Property Value As String

        Public Sub New()

        End Sub


    End Class

    'Private vCalculationInfo As New List(Of cCalculationInfo)

    'Public Property Captions(ByVal index As Integer) As List(Of cCalculationInfo)
    '    Get
    '        Captions = Me.vCalculationInfo
    '    End Get
    '    Set(Value As List(Of cCalculationInfo))
    '        MsgBox(Value.Count)
    '        Me.vCalculationInfo = Value
    '    End Set
    'End Property

    'Public Property Items As List(Of sCalculationInfo) =
    '    New List(Of sCalculationInfo)

    Public Property Captions As New List(Of cCalculationInfo)(3)

End Class

Keep of mind that alot of these been commented out to test, but can't get any of these to work. Why is it so hard to create something this simple

Viewing all articles
Browse latest Browse all 27400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>