home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,473 of 10,840   
   thomas to All   
   Re: Dynamic array ?   
   06 May 05 13:35:22   
   
   From: thomas@nomail.dk   
      
   B wrote:   
   > thomas schreef:   
   >   
   >> Hi   
   >>   
   >> I'm writing a program in Visual basic (Visual studio beta 2005)   
   >> In this array I need to somthing like   
   >>   
   >> array(0) = 0   
   >> array(1) = 1   
   >> array(2) = 2   
   >> array(3) = 3   
   >>   
   >> i then delete array(2) = 2   
   >>   
   >> the array must then resize to   
   >>   
   >> array(0) = 0   
   >> array(1) = 1   
   >> array(2) = 3   
   >>   
   >> How can I do this ?   
   >>   
   >> --   
   >> thomas   
   >   
   >   
   > So the next step is   
   >   
   >   array(2) = array(3)   
   >   
   > the resize it. In VB 6 this is   
   >   
   >   Redim preserve array(0 to 2)   
   >   
   > the preserve statement will keep the existing values.   
   >   
   > B.   
      
   Thanks   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca