Results 1 to 2 of 2

Thread: Indexer property

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Indexer property

    What is Indexer Property in vb.net

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

    Re: Indexer property

    There is no indexer in VB.NET. That's a C# term. The VB.NET equivalent is the default property. The default property is usually, although not always, named "Item". For instance, the ArrayList.Item property, which is the indexer in C#, can be accessed like this:
    vb.net Code:
    1. myObject = myArrayList.Item(index)
    or, as in C#, like this:
    vb.net Code:
    1. myObject = myArrayList(index)
    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

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