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,755 of 10,840   
   J French to pmBERMUDA_SHORTScook@gte.net   
   Re: converting old app to VB - strange I   
   20 Nov 05 09:24:52   
   
   From: erewhon@nowhere.uk   
      
   Inline :-   
      
   On Sun, 20 Nov 2005 06:01:16 GMT, "Paul M. Cook"   
    wrote:   
      
   >OK guys, this is my first real attempt at VB.  Actually my return to writing   
   >programs since 1998.  I've got an old DOS QB app that I am converting to VB   
   >6.0.  Really simple file formatting app.   
   >   
   >the INPUT statement is behaving oddly.  Picture a CSV file that looks like   
   >this   
   >   
   >   
   >Bill smith,123 Main St,Apt 3   
   >   
   >and input statement like this:   
      
      
   >Dim nm, ad1, ad2 as String   
      
    \___ this declares two Variants then one String   
      
   >Input #filehandle, nm, ad1, ad2   
   >   
   >What happens is that VB read the address value but only the numeric part   
   >then puts the rest in the ad2 variable.  So AD1 is now "123" and AD2 is   
   >"Main St"   
   >   
   >What am I doing wrong?   
   >   
   >Paul   
   >   
   >   
      
   --- 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