At 09:47 PM 8/8/2010, Michael J. Sinclair wrote:

I use the Rbase.dat file to run the application

G:
CD G:\RBDATA
CONNECT dbname
EDIT USING formname

The form seems to run just fine until I want to exit.

When I click on the Enhanced Speed Button (the name on the
Button is EXIT), the code that runs is...

CLOSEWINDOW
DISCONNECT
EXIT
RETURN

If I get rid of the word EXIT, the error goes away, but
then the program does not exit, it goes to the database
desinger/R> screen.


Mike,

Without knowing all other details, I suggest the following:

Update the RBASE.DAT file as follows:

-- RBASE.DAT
G:
CD G:\RBDATA
CONNECT dbname
CLS
EDIT USING formname
IF (CVAL('NetUser')) <> 'MSinclair' THEN
   DISCONNECT
   EXIT
ENDIF
RETURN

-- Edit Custom EEP
CLOSEWINDOW
RETURN

Note: Using the EXIT command in a Variable/TableView based
is not a good idea. EXIT command should not be used from
within an active window, such as form.

Hope that helps!

Very Best R:egards,

Razzak.


Reply via email to