• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 15-Day Money-Back Guarantee

VB Equivalent to C++ Indexers

C++ VB
int &operator [](int index)
    return field[index];

*for a read-only indexer, return an int instead of an int reference (remove the '&').
Default Public Property Item(ByVal index As Integer) As Integer
        Return field(index)
    End Get
        field(index) = Value
    End Set
End Property

Use C++ to VB Converter to convert from C++ to VB.     

Additional resource: VB.NET and C++ Equivalents

Copyright © 2004 – 2021 Tangible Software Solutions, Inc.