That worked! Now what would be the best code to put in an EEP if I want to go to the database editor/R>? Basically, I want 2 buttons...one to exit, and another to go the R> or to the Database editor screen.
Mike ________________________________ From: A. Razzak Memon <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Sun, August 8, 2010 10:17:55 PM Subject: [RBASE-L] - Re: sw: RBG76.EXE - Application Error 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.

