CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Posts
    6

    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.

  2. #2
    Join Date
    Jun 1999
    Posts
    153

    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

  3. #3
    Join Date
    Jan 2005
    Posts
    6

    Re: compatability of VB 6 with with VB.Net

    I have tried it but it didn't work for 'Right" and "Left".

  4. #4
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    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.

  5. #5
    Join Date
    Jun 1999
    Posts
    153

    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
  •  





Click Here to Expand Forum to Full Width

Featured