latika singh

latika singh

  • NA
  • 31
  • 33.7k

Passing string to an int property

Mar 6 2012 9:56 AM
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)