At 07:59 AM 3/28/2008, Lin MacDonald wrote:
I have an application that runs via a Main Menu form called in my .dat
file. I'd like the ability to have the User exit the application into
the Database Explorer or just exit completely. (Similar to what Razzak
has done in RRBYW14). I have my form exiting to the Database Explorer
but I can't seem to get it to exit completely.
Lin,
It all depends on how the application was started.
What are the exact commands used in your startup file, such as .DAT file?
How are you starting your application?
Are you using the shortcut, such as:
-- Example:
Target: C:\RBTI\RBG76\RBG76.EXE RRBYW14.DAT
Start in: C:\RBTI\RBG76\Samples\RRBYW14
-- RRBYW14.DAT
IF (CVAL('DATABASE')) <> 'RRBYW14' OR (CVAL('DATABASE')) IS NULL THEN
CONNECT RRBYW14 IDENTIFIED BY NONE
ENDIF
PROPERTY APPLICATION TITLE 'Running R:BASE Your Way! (Part 14)'
EDIT USING RRBYW14MainMenu
LABEL Done
RETURN
-- Main Menu Options (Exit):
-- Switch to Database Explorer
CLOSEWINDOW
RETURN
-- Close Application and Exit
CLEAR VARIABLE vCompiled
SET VAR vCompiled TEXT = NULL
GETPROPERTY APPLICATION ISCOMPILED vCompiled
IF vCompiled = 'YES' THEN
CLOSEWINDOW
ELSE
CLOSEWINDOW
EXIT
ENDIF
RETURN
Hope that gives you some blues clues ...
Very Best R:egards,
Razzak.
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================