Jim,

 

Good programming practice requires that you always trap for any possible
outcomes.  So, yes, do look for the escape key.  You should also check that
your result is a valid date before proceeding.

 

Also, in Windows, try using the DIALOG command instead of FILLIN.  With
DIALOG, you can specify the POPUP option and make the popup a GUI calendar.

 

Yet another option is the (GETDATE()) function.

 

Emmitt Dove

Manager, Converting Applications Development

Evergreen Packaging, Inc.

[email protected]

(203) 214-5683 m

(203) 643-8022 o

(203) 643-8086 f

[email protected]

 

From: [email protected] [mailto:[email protected]] On Behalf Of Jim Belisle
Sent: Thursday, May 07, 2009 8:04 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - [No Subject]

 

I use many simple EEP's in the application I am building like the one below.


 

SET DATE MM/DD/YYYY

SET VARIABLE vWorkDate DATE

FILLIN vWorkDate=8 USING 'ENTER WORK DATE YOU ARE EDITING IN MMDDYYYY
FORMAT. +

       DO NOT USE SLASHES(/).'

EDIT USING KayParkDaywork WHERE WorkDate = .vWorkDate

CLEAR VAR vworkDate

RETURN

 

Is it always wise to have an IF THEN statement to care for the escape key
(or null) in case the user decides to get out of the form before entering
the information?

 

Jim

 

I use this in some of the menu choices:

 

IF vendkey = '[Esc]' THEN

    GOTO done

ENDIF

 

 

Reply via email to