For Left, a fairly direct use of the string SubString method will do.
e.g., Left(y, 2) becomes y.Substring(0, 2)
For Right, it's only slightly more complex.
e.g., Right(y, 2) becomes y.Substring(y.Length - 2)
--
http://www.tangiblesoftwaresolutions.com
C++ to C#
C++ to VB
C++ to Java
C++ to C++/CLI
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: convert VB or C# to C++/CLI
"Alan Mailer" wrote:
Could someone tell me what the VB.Net counterparts are to the commands
in VB6 which used to allow me to return only the rightmost or leftmost
parts of a string?
Thanks in advance.