cBarry263
Active member
What's the .NET equivalent of the "Right" function in VB6. For example:
Imports System.String
.
.
.
Dim s as String
s = "example"
'Let's say I want to get rid of the "ex", in VB 6 you could do:
Dim temp as String
temp = Right(s, 2)
I'm trying to do something similar in .NET, but when I use the "Right" function, it says 'Public ReadOnly Property Right() As Integer' has no parameters and its return type cannot be indexed.
I know I have done this in .NET before, what's trick?
Imports System.String
.
.
.
Dim s as String
s = "example"
'Let's say I want to get rid of the "ex", in VB 6 you could do:
Dim temp as String
temp = Right(s, 2)
I'm trying to do something similar in .NET, but when I use the "Right" function, it says 'Public ReadOnly Property Right() As Integer' has no parameters and its return type cannot be indexed.
I know I have done this in .NET before, what's trick?