Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How to stop a Harbour app (ALT-C or CTRL-C)?

How to stop a Harbour app (ALT-C or CTRL-C)?

How to stop a Harbour app (ALT-C or CTRL-C)?

I am converting a large application to Harbour and faced a problem. If a program loops I need to stop it. How?
ALT-C and CTRL-C does not work.
Any help?



RE: How to stop a Harbour app (ALT-C or CTRL-C)?

Best would be to check for a specific keypress by calling
whatKey = Inkey()
if whatKey == K_CANCEL
  quitLoop = .t.

Usually, during initializing a large app, Alt-C for Cancel would be disabled.

RE: How to stop a Harbour app (ALT-C or CTRL-C)?

OK. How can I enable the ALT-C cancel routine?
I mean, the program entered an unknown routine between several of them and (I presume) some litlle difference of implementation led to the loop. If I am testing a single new routine and don´t know if everything is going right I usually place several one line alerts on the bottom of the screen saying "I passed here", "This is comparison x", "The result was y" etc. to know it´s initial behaviour. After the initial tests these alerts are completely removed.

RE: How to stop a Harbour app (ALT-C or CTRL-C)?

Have a look at the SetCancel() function, and also see AltD() to invoke the debugger (when enabled and linked in)
Be aware that canceling stops the app entirely, so no real post-mortem on what it was doing...

RE: How to stop a Harbour app (ALT-C or CTRL-C)?

Thank you TonHu.

SetCancel() will do the trick. Sorry for the misplaced word "between" in last post. I´m not a native english/american guy. I´m brazilian, so, sometimes words may go wrong in text.
One more comment. This "Clipper" forum is almost completely inactive. Where do the Harbour users go for help? I mean real valuable help from experienced people like you, fBizell, JockMullin, GriffMG and others?

Ulisses / mbinfo

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close