Results 1 to 6 of 6

Thread: Obsolete property

Hybrid View

  1. #1
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Obsolete property

    You still haven't actually explained what the line of code that is giving you the messages is trying to do. The error message says:
    Please use IPAddress.Equals method to perform comparisons.
    Are you performing a comparison? If not the you wouldn't use Equals. Have you read the documentation for the IPAddress.Address property? Why is that not the obvious next step? That documentation says:
    This property is obsolete. Use GetAddressBytes.
    and kindly provides a link to the documentation for that property. The BitConverter class, which you're already using, can convert those Bytes to an Integer.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  2. #2

    Thread Starter
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    Re: Obsolete property

    Sorry jmcilhinney, but I give up. I understand that you're trying to help me, but I just can't seem to find an answer. And as long as the code works, I won't give it any more thought.

    PS: The codeline changes the (example) string 192.168.1.34 to integer 570534080
    Arve K.

    Please mark your thread as resolved and add reputation to those who helped you solve your problem
    Disclaimer: I am not a professional programmer

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