CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Arrays

  1. #1
    Join Date
    Mar 2000
    Posts
    33

    Arrays

    I have declared a type which is let say MY Type

    and I want to populate an array with a record of My type every time the event Private Sub cmdAddLife_Click() is generated.

    How can I do??


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Arrays


    dim mytypes() as MYTYPE
    dim count as integer
    ..cmdAdd

    redim preserve mytypes(count)
    mytypes(count).value = value
    mytypes(count).value2 = value2
    count = count+1



    this is PCODE!


  3. #3
    Join Date
    Mar 2000
    Posts
    33

    Re: Arrays

    Thank you for your answer, it was very helpful. Now I would like to be able to display the values of each records of the array in some fields in a vb form by using a Private Sub cmdSeePrevious_Click() event.


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