Results 1 to 2 of 2

Thread: Array of structures

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Posts
    12

    Array of structures

    In Visual Basic.Net, After a Structure is made, eg:

    structure MyStructure

    dim var1 as integer
    dim var2 as integer

    end structure

    **** How do I create an array, lets say if size 5, as a MyStructure type? I cannot find this anywhere.

    Thanks,
    Spectrum

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Public Structure Tester
    2.         Public Item1 As Integer
    3.         Public Item2 As Integer
    4.     End Structure
    5.  
    6.     Public Testers() As Tester

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