Re: About SCREEN DESIGN
Posted: Thu Nov 19, 2015 5:18 am
All @ DCSAY etc will be managed by a DCREAD GUI command.
Are all the options of DCGETOPTIONS also valid in the DCREAD GUI ?
Could I put all my options in the DCREAD GUI ?
In this example, TITLE in DCREAD GUI will be the one displayed and not the TITLE in DCGETOPTIONS.
Are all the options of DCGETOPTIONS also valid in the DCREAD GUI ?
Could I put all my options in the DCREAD GUI ?
In this example, TITLE in DCREAD GUI will be the one displayed and not the TITLE in DCGETOPTIONS.
Code: Select all
SET DATE FORMAT TO 'mm/dd/yyyy'
@ 1,1 DCSAY 'Enter a Date' GET dDate PICTURE '99/99/9999' ;
SAYRIGHT GETSIZE 13
@ 3,1 DCSAY 'Enter a Number' GET nNumber SAYRIGHT
@ 5,1 DCSAY 'Enter a String' GET cString SAYRIGHT
@ 7,1 DCSAY 'Enter Yes or No' GET lLogical PICTURE 'Y' SAYRIGHT
DCGETOPTIONS ;
SAYWIDTH 120 ;
WINDOWHEIGHT 300 ;
WINDOWWIDTH 400 ;
BORDER XBPDLG_RECESSEDBORDERTHICK_FIXED ;
TITLE 'Data Entry' // Store options to GetOptions
DCREAD GUI ;
MODAL ;
TITLE 'Text-Based GETs' ;
BUTTONS DCGUI_BUTTON_OK + DCGUI_BUTTON_CANCEL ;
OPTIONS GetOptions