Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The IF...THEN structure has indented lines, however the 'END IF' line is not vertically beneath the first 'IF' line. This may be a sign of an error.
Possibility: I don't know VB syntax, but at least one BASIC I have used does not require "THEN" at the end of the first IF statement in a multiple-line IF structure.
It's hard to tell based on just the screen shot of the code but the 424 error code usually means that a control that is being called doesn't exist. In the Form_Load() sub, it looks like you are trying to get the COM port assignment from a control (?) named "portnumber.Combo1". I don't see a combo box on the form (though it may be hidden). For debugging, replace the "Val(portnumber.combo1.Text)" with "1" or whatever your COM port number is to see if that is the cause.
Can you step through the program and find the exact line or sub that is causing the error?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.