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,754 of 10,840   
   Paul M. Cook to All   
   converting old app to VB - strange INPUT   
   20 Nov 05 06:01:16   
   
   From: pmBERMUDA_SHORTScook@gte.net   
      
   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   
   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