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

    Hi,

    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?

    Harry
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should use:
    Code:
    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

    Harry
     
Loading...