How to redimension an array of structures

Discussion in 'Code Samples & Tips' started by HARRY, Feb 20, 2008.

  1. HARRY

    HARRY Active Member Licensed User


    In Sub Globals I declared:

    Dim Type (a,b,c,d) S (0) As Int32

    When the program is running, I find out the number of structures I need. How can I redimension this array?

  2. Erel

    Erel Administrator Staff Member Licensed User

    You should use:
    Dim S(x,4'x - number of structures. 4 -number of fields
  3. agraham

    agraham Expert Licensed User

    If for some reason you really want the array to be of type Int32 then you will need

    Dim (x,4) As Int32

    otherwise you will get a normal (string) array.
  4. HARRY

    HARRY Active Member Licensed User

    Thanks both of you for the prompt Help

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice