Hi;
Use [object].SubString for Left:
string myString = "12345";
string one = myString.Substring(0, 1);
String$ repeats a string a specified number of times - it is a padding function:
string UserName = new String((Char)55, 33);
The code snippet creates a new string that repeats "7" 33 times.
To replace Right, use [object].Substring, but start at the last position
string right = "123456";
string six = right.Substring(right.Length -1,1);
Remember that VB used 1 based indexers - so all arrays and counts start at 1 and not at 0.
As Any is a tricky one - you could use object, but the official docs all recommend that you trace the calling functions any specify the type explicitly, in C# we have overloading which VB did not, that may be one of the reasons for the as Any signature.
See these links:
[
VB String Functions]
[
MSDN]