|
-
February 8th, 2005, 05:14 AM
#1
compatability of VB 6 with with VB.Net
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.
-
February 8th, 2005, 05:27 AM
#2
Re: compatability of VB 6 with with VB.Net
I believe you can.
Insert this at the top of your file
Imports Microsoft.VisualBasic
Kevin
-
February 8th, 2005, 07:44 AM
#3
Re: compatability of VB 6 with with VB.Net
I have tried it but it didn't work for 'Right" and "Left".
-
February 8th, 2005, 09:23 AM
#4
Re: compatability of VB 6 with with VB.Net
Use the entire name Microsoft.VisualBasic.Right(string.....) although I would recommend converting to .NET stff and avoid the Microsoft.VisualBasic namespace when possible.
-
February 9th, 2005, 04:43 AM
#5
Re: compatability of VB 6 with with VB.Net
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.
Kevin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|