Easy to Create, Easy to Change - Easy to use!

Command::

exit



Parameters


Returns/Result


Examples


Reference

exit

Type

Procedural Command

Purpose

The exit command is used to immediately terminate a script.

Syntax

exit .

Usage

The exit command can be used anywhere in a script. When it is executed, the script immediately stops processing and returns control to the user or calling procedure.

Example

for MEMBERS ;

list records

TOTAL DUE in reverse ;

LAST NAME .

if current item number > 5 then

exit .

end

end

 

This script tells DataEase: (1) List the five members with the highest TOTAL DUE values, and (2) when the fifth record is processed, terminate the script. Note that two end commands are required to fulfill the DQL syntax requirements even though the exit command terminates processing.

The output from this script, arranged in descending order on the TOTAL DUE field, might look as follows:

 

 

Last Name

Total Due

Christino

$280.00

Perrault

$215.00

Strachan

$205.00

Stafford

$185.00

Jones

$175.00

 

See Also


On the forum about exit

Exit from dataease automatically

I have some automatic procedures that runs during the night but those procedures doesn’t close dataease application.Since version 6.52 I use :a := ExitDataEase() .a := Keystrokes("_enter") .DataEase 8 doesn’t close the appl...

Product: Dataease [{8}]FIVE. Written by Marco Marchesi 31/10/14 at 07:32:10

Re:Exit from dataease automatically

I have used the same coding that you have shown and it works - Are you running your procedure from another procedure, is it being called from an unterminated block etc.I would check again that the procedure that is closing your database is bein...

Product: Dataease [{8}]FIVE. Written by Peter Birney 31/10/14 at 20:57:28

Re:Exit from dataease automatically

One of the big news in DataEase 7.0 was the conversion of Borland C++ to Microsoft Visual C++. This was higly necessary since Borland C++ was de-supported etc.Borland C++ had its own DLLs and functions for most windows functions so the behavio...

Product: Dataease [{8}]FIVE. Written by DataEase 01/11/14 at 09:58:16

Re:Re:Exit from dataease automatically

I tried your code marked in blue :1) If I run the procedure simply open the procedure via catalog it works.2) If I run the procedure via scheduled task it doesn't work and reply to me "Ok to close "Application name" ? and if I click "yes" appe...

Product: Dataease [{8}]FIVE. Written by Marco Marchesi 03/11/14 at 09:16:25

Re:Re:Re:Exit from dataease automatically

I had a similar request from a client. All I did was created a 3rd party utility to open DataEase, run the procedure, wait for the DataEase to finish running the procedure, when procedure completes, there will be message like "OK to close....

Product: Dataease [{8}]FIVE. Written by Jeyarajah Arulrajah 05/11/14 at 02:15:31

Re:Re:Re:Re:Exit from dataease automatically

Thank you for this. Unfortunately I cannot install 3rd part software without a license and a specific approval by my company.  If it works with your script could you please send it to me by e-mail or upload the file in your website? (marco.marche...

Product: Dataease [{8}]FIVE. Written by Marco Marchesi 05/11/14 at 11:31:46

Re:Re:Re:Re:Re:Exit from dataease automatically

Hi Marco,May be I did not explain myself properly. This utility is created according to customer application/specification. i.e. it is chargeable consultancy.That is why I even pointed out which software I use. And you can use the same s...

Product: Dataease [{8}]FIVE. Written by Jeyarajah Arulrajah 05/11/14 at 14:25:11

Re:Re:Re:Re:Re:Re:Exit from dataease automatically

We have now added ExitDataEase("Silent")One thing you have to make sure of is that you call Exit in the right place. In my example I did it in a wrong place i.e. in the middle of a loop and this can cause problems.Only call exit when Da...

Product: Dataease [{8}]FIVE. Written by DataEase 11/11/14 at 11:39:31

How can you eliminate Maximise / Minimise & Exit icons buttons from a Form

[@EOF@]...

Product: Dataease [{8}]FIVE. Written by 02/12/14 at 16:05:32

Want to exit DataEase at a scheduled time, trying Timer().

I want to exit DataEase at a given time and is looking into Timer() but can't find any documentation.Can anyone help?...

Product: Dataease [{8}]FIVE. Written by SteinE 09/11/16 at 10:19:14

Re:Want to exit DataEase at a scheduled time, trying Timer().

Download Sample! Hi Stein. Yes. this is now straight forward with the new Timer() event on F...

Product: Dataease [{8}]FIVE. Written by DataEase 09/11/16 at 10:57:15

On the blog about exit

DataEase 8.2 - ExitDataEase("Silent") now with Silent option (Ver. 8.2.0.1679)

When running DataEase as a scheduled process it is nice to be able to quite DataEase altogether after it has been run.The way of doing this has been to use KeyStrokes() cdf to send keystrokes to the process after running ExitDataEase() function...

Product: Dataease [{8}]FIVE. Written by DataEase 11/11/14 at 22:42:03

Sorry.... We are aware there is a lot of exiting stuff added here but you have to wait a little longer.

We are sorry but there is so much new and exciting features in the upcoming release of 8.5 and the upcoming slipstream doesn't even reveal half of the development work that has been done on 8.5 since last release.DFW is soon to undergo a big c...

Product: Dataease [{8}]FIVE. Written by DataEase 16/07/16 at 06:59:53

New Sample - How to use Timer(Event) to schedule exiting DataEase

Download Sample! Here we will show how you can use the new Timer(Event) to take down DataEase autom...

Product: Dataease [{8}]FIVE. Written by DataEase 07/03/19 at 12:11:48

Re:New Sample - How to use Timer(Event) to schedule exiting DataEase

Update to Article.In practical use you might stumble upon the problem of DataEase not being active when the timer runs out. To resolve this read on:DataEase has a big divide between GUI functions and PRISM functions.  G...

Product: Dataease [{8}]FIVE. Written by DataEase 07/03/19 at 12:11:10