Continue to Site

Welcome to EDAboard.com

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.

Visual basic 6.0 Run time error 424

Status
Not open for further replies.

aswathymohan

Member level 4
Joined
Nov 11, 2012
Messages
68
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,288
Activity points
1,727
Untitled.png

form.png
Hi

I have designed a code for robotic application in Visual basic 6.0.It encounters with an error 424 object is required

can anyone help me pl...
 

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?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top