Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Issue successfully resolved

???
06/21/04 23:42
Read: times


 
#72885 - Bad style - unwarranted restriction
Responding to: ???'s previous message
serialport = Val(InputBox("Select ComPort 1 or 2?", "ComPort selection", 1)) 
Loop Until serialport = 1 Or serialport = 2

There is absolutely no need whatsoever to artificially restrict your code to only COM1 or COM2 like this.

This was one of the many annoying features of early hypoterminals - it only ever went up to COM4

[rant]
When you have many serial ports on your PC (eg, USB-RS232 adaptors; TCP/IP-RS232 adaptors; multiport serial cards, etc) it is very annoying to find software that is too lazy to determine the actual PC capabilities, and just blindly restricts you to COM1 or COM2 (or even COM3 and COM4).

Well-written Windows software will present the user with a full list of the serial ports actually available on the system.
[/rant]

List of 24 messages in thread
TopicAuthorDate
VB COM2 - Off topic            01/01/70 00:00      
   RE: VB COM2 - Off topic            01/01/70 00:00      
      RE: VB COM2 - Off topic            01/01/70 00:00      
   Bad style - unwarranted restriction            01/01/70 00:00      
      RE: Bad style - unwarranted restriction            01/01/70 00:00      
         RE: Wot, not serial port?!            01/01/70 00:00      
         RE: Bad style - unwarranted restriction            01/01/70 00:00      
            COM13!!            01/01/70 00:00      
               RE: COM13!!            01/01/70 00:00      
                  RE: COM13!!            01/01/70 00:00      
                     RE: COM13!!            01/01/70 00:00      
                        RE: COM13!!            01/01/70 00:00      
      How?            01/01/70 00:00      
         RE: How?            01/01/70 00:00      
         RE: How?            01/01/70 00:00      
            RE: How?            01/01/70 00:00      
      RE: Bad style - unwarranted restriction            01/01/70 00:00      
   RE: VB COM2 - Off topic            01/01/70 00:00      
   The Result            01/01/70 00:00      
      RE: The Result            01/01/70 00:00      
      RE: The Result            01/01/70 00:00      
   RE: VB COM2 - Off topic            01/01/70 00:00      
   The source code HERE.            01/01/70 00:00      
   Or the Whole achieve in Zip file            01/01/70 00:00      

Back to Subject List