Results 1 to 2 of 2

Thread: VB6.0 conversion code gives error in VB.Net 2010

  1. #1
    .NET Framework
    .NET 3.5
    Join Date
    Aug 2010
    Posts
    6
    Reputation
    0

    VB6.0 conversion code gives error in VB.Net 2010

    Hello,

    i have a decalre statement in vb6.0 Dim mydrvlabel As String * 256
    when i declare same thing here it gives error.

    Can you please tell what is equivalent declaration in vb.net 2010 .

    Thanks

  2. #2
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,949
    Reputation
    1722
    That is the VB6 way of specifying a String as being a specific length. There is no specific equivalent in VB.NET. If you need this for a Windows API call or the like, look at using the VBFixedString attribute. If you don't need it for that then you don't need it at all so just use a regular String declaration.

Similar Threads

  1. VB6 to ASP.net conversion process
    By wshore in forum ASP.NET General Discussion
    Replies: 0
    Last Post: 05-28-2011, 3:40 AM
  2. VB6 to VB.NET Code Conversion
    By deadlyhawk in forum VB.NET General Discussion
    Replies: 1
    Last Post: 03-05-2007, 1:02 PM
  3. VB6 to vb.net conversion
    By lpaul in forum VB.NET General Discussion
    Replies: 3
    Last Post: 02-02-2006, 1:21 PM
  4. VB6 to VB.NET conversion and PSET Error message
    By Al Shah in forum VB.NET General Discussion
    Replies: 0
    Last Post: 03-16-2005, 3:59 PM
  5. vb6 to .net conversion problem, the 'any' object
    By JuggaloBrotha in forum VB.NET General Discussion
    Replies: 1
    Last Post: 08-19-2004, 4:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •