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,056 of 10,840   
   Martin Trump to Stefanie@zsmail.net   
   Re: REQ: Declaring variables and file fo   
   05 Dec 04 16:44:46   
   
   XPost: comp.lang.basic.visual, comp.lang.basic.visual.misc   
   From: martin@wmeadow.demon.co.uk   
      
   In message <157fd$41b32ced$513b4d44$1464@news1.zonnet.nl>, Stefanie   
    writes   
   >file they have the same lenght). Is it possible to use the lenght i obtain   
   from   
   >reading that other file to   
   >declare my variable or are there   
   >other possibilities.   
      
   Off the top of my head. You can define a dynamic array within a user   
   defined type:-   
      
   Type mytype   
     ....   
     mystring()   
     ...   
   End Type   
      
   You can then set the size of mytype.mystring using:-   
      
   Redim mytype.mystring (Len(inputstring))   
      
   However, you may be storing up trouble if you want to use random access   
   on the resulting file. Where do you seek to for a new record?   
   HTH.   
      
   Regards   
      
   --   
   Martin Trump   
      
   --- 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