Jump to content
Sign in to follow this  

Error Processing

Recommended Posts


I am testing a communictations port where the script uses the NetComm.OCX routine.

I am trying to error trap the process when the modem is physically disconnected.

When this happens I am get the following screen

Tile: Project1

Message: Run-time error '8021':

Internal error retrieving device control block for the port

User Response = OK

Neither of these error traps work

If WinGetTitle("Project1", "") Then

ControlClick("Project1", "", "Button1")



If WinGetTitle("Project1", "") Then

I have been able to resolve this issue

Cheers Ant :P

$text = StringLeft(WinGetText("Project", ""), 8)

If $text = "Run-time" then




Help would be greatly appreciated :D Ant

Edited by anixon

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.