Click to See Complete Forum and Search --> : compatability of VB 6 with with VB.Net
Zubair Younas
February 8th, 2005, 04:14 AM
Hi All,
Is there any way we can use the string functions of "Right" and "Left" of VB in VB.Net as it is.
Thanks and regards.
Zubair Younas.
Kevin McFarlane
February 8th, 2005, 04:27 AM
I believe you can.
Insert this at the top of your file
Imports Microsoft.VisualBasic
Zubair Younas
February 8th, 2005, 06:44 AM
I have tried it but it didn't work for 'Right" and "Left".
DSJ
February 8th, 2005, 08:23 AM
Use the entire name Microsoft.VisualBasic.Right(string.....) although I would recommend converting to .NET stff and avoid the Microsoft.VisualBasic namespace when possible.
Kevin McFarlane
February 9th, 2005, 03:43 AM
Left worked for me and I didn't have to fully qualify the name.
I agree we should avoid use of Microsoft.VisualBasic when possible.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.