Among the 4C/Med Appt Scheduler programs, there is a program
that prompts for days of the week.
The INIT PCL for this program sets the prompts for the
days and the input field for the days to no echo if
those days are not possible to schedule on.
In addition, the input field is set to display only.
Thus, you may be prompted for all days of the week, or
only for monday and tuesday, or something like that.
The code that does this follows:
if (as_us_daysel[6] != 'y') {
sys.set_dfoption(PMONDAY,"ne");
sys.set_dfoption(MONDAY,"ne","do");
}
if (as_us_daysel[0] != 'y') {
sys.set_dfoption(PTUESDAY,"ne");
sys.set_dfoption(TUESDAY,"ne","do");
}
if (as_us_daysel[1] != 'y') {
sys.set_dfoption(PWEDNESDAY,"ne");
sys.set_dfoption(WEDNESDAY,"ne","do");
}
if (as_us_daysel[2] != 'y') {
sys.set_dfoption(PTHURSDAY,"ne");
sys.set_dfoption(THURSDAY,"ne","do");
}
if (as_us_daysel[3] != 'y') {
sys.set_dfoption(PFRIDAY,"ne");
sys.set_dfoption(FRIDAY,"ne","do");
}
if (as_us_daysel[4] != 'y') {
sys.set_dfoption(PSATURDAY,"ne");
sys.set_dfoption(SATURDAY,"ne","do");
}
if (as_us_daysel[5] != 'y') {
sys.set_dfoption(PSUNDAY,"ne");
sys.set_dfoption(SUNDAY,"ne","do");
}
The following demo programs show different ways that "ignore" works
with Panel List programs and Panel ListView programs.
-
dtf.lv2.s -
Run this program to see a Panel ListView program and a Panel List
program embedded in a layout.
-
dtf.lv.2 -
Run this progam standalone to see a Panel ListView
program run in it's own layout.
-
dtf.list.2 -
Run this program to a Panel List program run in it's own layout.
Both the Panel List program and the Panel ListView program prompt to
let you decide whether 2 of the list items should be set to "ignore"
in the InitPCL, the OpenPCL, or not at all.
It is worthwhile to notice the differences.