|
-
May 9th, 2018, 02:48 AM
#1
Thread Starter
Junior Member
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
-
May 9th, 2018, 03:14 AM
#2
Addicted Member
Re: VB6.0 conversion code gives error in VB.Net 2010
-
May 9th, 2018, 03:37 AM
#3
Re: VB6.0 conversion code gives error in VB.Net 2010
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.
Tags for this Thread
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
|