CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Posts
    52

    array building short-cut

    is there a way to set multiple indexes on an array? for example need an array of numbers 9,8,5,8,4 is there a short-cut method to arrMyArray(1) = 9 and so forth?

  2. #2
    Join Date
    Mar 2007
    Location
    Argentina
    Posts
    579

    Re: array building short-cut

    Quote Originally Posted by PaulJayKnight View Post
    is there a way to set multiple indexes on an array? for example need an array of numbers 9,8,5,8,4 is there a short-cut method to arrMyArray(1) = 9 and so forth?
    Dim MyArray() As Integer = New Integer() {9,8,5,8,4}
    [Vb.NET 2008 (ex Express)]

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

Featured