Results 1 to 17 of 17

Thread: Strange Error

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2009
    Posts
    429

    Re: Strange Error

    Quote Originally Posted by Pradeep1210
    Shouldn't your declaration be:

    Code:
    Dim results() As Uri

    Is there any declaration mistake? i tried declaring both globally and locally.

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Strange Error

    Quote Originally Posted by yogesh12
    Yeah i have Declared it as Global Variable.
    No... I meant the position of brackets.

    Dim results() As Uri
    Dim results As Uri()

    These two declarations mean two different things.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2009
    Posts
    429

    Re: Strange Error

    Quote Originally Posted by Pradeep1210
    No... I meant the position of brackets.

    Dim results() As Uri
    Dim results As Uri()

    These two declarations mean two different things.
    I got Error. Array cannot be Declared as New

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