Results 1 to 6 of 6

Thread: translate vb6 code to vb2008 question

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    3

    translate vb6 code to vb2008 question

    hi


    i have this type of VB6 code in many many many instances

    Public Array001(999) As String * 5

    how can i translate it to VB2008?


    thanks

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: translate vb6 code to vb2008 question

    remove the * 5 from the end...Otherwise it's good as is.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: translate vb6 code to vb2008 question

    Moved To VB.NET

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    3

    Re: translate vb6 code to vb2008 question

    thanks


    i got that already

    my problem is that the code need that all tha arrays occurences have a lenght of 5 positions

    how can i specify the length for that string?

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: translate vb6 code to vb2008 question

    Strictly speaking, you can't. .NET doesn't support it.
    You CAN use the VB6 compatible interop to "make" it work: http://social.msdn.microsoft.com/For...-f7c6de89d7d7/

    See also this thread: http://social.msdn.microsoft.com/for...7-4a14849fc3f3

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    3

    Smile Re: translate vb6 code to vb2008 question

    thanks

    this was totally helpful

    thanks again

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