1
Answer

Passing string to an int property

latika singh

latika singh

12y
1.4k
1
Dear All,

I have a following property:

Public Overrides Property Acc(ByVal axis As Short) As Double
        Get

        End Get
        Set(ByVal value As Double)

        End Set
    End Property

I am accessing a variable from my hardware by using the following statement:
_Interface.Value(Acceleration.X).

The X stored inside my hardware structure is of type string. Is there a way to pass an integer in the above property and it maps with X in my hardware? So when I write _Interface.Value(Acceleration.1) it should automatically correspond that it is for X.

Answers (1)