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!

*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

Forcing a program to EXIT

Forcing a program to EXIT

Forcing a program to EXIT

I have a user log-on for the application I am writing. I would like to force the application to exit if the log-on is incorrect. The user can press the log-on button at any point in the program, so there can be many screens open & also different tables open. I know I can use HALT, but that doesn't do a proper close, to save & close any open data tables. Is there a simple way to force Clarion to close all open tables/files and then exit?

I am using Clarion 5.5.

Replies continue below

Recommended for you

RE: Forcing a program to EXIT

EVENT:CloseDown will cause the application to shut down orderly.  I believe you need to post it to the thread that has the Main Frame is under.  (I am not sure what will happen if you simply do a Post(EVENT:CloseDown) in the current thread.)

RE: Forcing a program to EXIT

This the method I use
On the main Procedure In the open window embed put


Logonscreen is the procedure to logon

on the logon screen disable the ok button until the password etc are correct. Then just use it to close the current window.
On the accepting cancel button put the following.
RETVAL = '1'
return level:fatal

Hope this helps

RE: Forcing a program to EXIT

Compr & jjyxk845

Thanks for the suggestions. I combined your suggestions & it worked great.

In the main procedure, after the call to UserLogon I put:


Thanks for the help

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! Already a Member? Login

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