Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / August 2006

Tip: Looking for answers? Try searching our database.

Upgrading arrays (VB6->VB.Net Express)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Herbert Joll - 13 Aug 2006 10:51 GMT
Hello,

I want to upgrade my VB6 project to VB.Net Express.

I have a type, and I dim an array from it.

This is what I have.

    Private Structure TColorRGB
        Dim Red As Integer
        Dim Green As Integer
        Dim Blue As Integer
    End Structure

And what I do is:

    Dim NewRGBPoint(8) As TColorRGB

And now VB.Net is telling me that I it "couldn't resolve default
property of object NewRGBPoint(i) in these lines:

                            For i = 0 To 8
                                'UPGRADE_WARNING: Couldn't resolve
default property of object NewRGBPoint(i). Click for more:
'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                                NewRGBPoint(i) = LongToRGB(lColor(i))
                                lTemp = lTemp +
GetBrightness(NewRGBPoint(i))
                            Next i

What I found in the MSDN what a bit of a joke or at least not
understandable: "Create an array!". Aha, I thought that was what I did...

Can anybody please help?
Thanks.
Herbert.
Ken Tucker [MVP] - 13 Aug 2006 12:13 GMT
Hi,

      What the warning means that VB is expecting LongToRGB to return a
TColorRGB structure.

Here is some info on default properties
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vaco
ndefaultproperties.asp


Ken
----------------------
> Hello,
>
[quoted text clipped - 32 lines]
> Thanks.
> Herbert.
GhostInAK - 13 Aug 2006 20:14 GMT
Hello Herbert,

You may wish to use the new Color structure in .NET.

-Boo

> Hello,
>
[quoted text clipped - 32 lines]
> Thanks.
> Herbert.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.