Home All Groups Group Topic Archive Search About

Using structures in VB.net as opposed to VB6

Author
2 Jul 2009 3:40 PM
sid
I am trying to use the vb.net upgrade wizard in vs5 to upgrade an old
application.
But the IDE shows some errors that I don't now how to fix.

The wizard though an error:
Normal      UPGRADE_WARNING: Couldn't resolve default property of
object tmpClient. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/
local/redirect.htm?
keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'      C:\Clients\Net
\....\clsClientSort.vb      84

but I am not concerned with the default property, I just want to pass
the element of the Array.  In VS I get the previous error at the first
line of the function. This is what use to work well in VB6.

Public Structure typCliSelect
   Dim ID As String
   Dim ClientName As String
End Structure

Dim Aray() as typCliSelect
Redim aray(10) as typClient

for I = 1 to 10
  ProcessClient(Aray(i))
next

public function ProcessClient(MyClient as typCliSelect) as long
' Do some stuff ...
end function


How do I pass just one element of the array ?
Thanks

Author
2 Jul 2009 3:51 PM
Bob Butler
"sid" <sidwe***@alexian.net> wrote in message
news:3177b0f7-8101-4323-9141-8608da314f16@j9g2000vbp.googlegroups.com...
>I am trying to use the vb.net upgrade wizard

ROTFL

> in vs5 to upgrade an old
> application.
> But the IDE shows some errors that I don't now how to fix.

This group is for VB6 and earlier; you'll need to ask in a group with
"dotnet" or "vsnet" in the name.
Author
2 Jul 2009 4:00 PM
mayayana
Already multi-posted to the .Net group.
Author
2 Jul 2009 4:00 PM
Nobody
Try posting your question here:

news://msnews.microsoft.com/microsoft.public.dotnet.languages.vb.upgrade

Also, check out these groups:

news://msnews.microsoft.com/microsoft.public.dotnet.languages.vb
news://msnews.microsoft.com/microsoft.public.dotnet.framework.interop

This is a VB6 and earlier group(VB Classic). VB.Net and all dotnet groups
have either "dotnet" or "vsnet" in the group name.