keyEvent {RSurvey} | R Documentation |
Controls the character string content within a Tk entry widget.
keyEvent(ent.typ, ent.str = "", rm.data = FALSE)
ent.typ |
the entry type |
ent.str |
the entry value |
rm.data |
a logical; if TRUE the existing processed data is removed. |
The entry types include: real, second, integer, hour,
minute, and date. If rm.data
is TRUE
then both the data.mod
and data.tin
components of srvy.dat
are removed.
A character string with strict adherence to the entry type.
Fisher, J. C.
keyEvent("date", "07/12/1971") ## [1] "07/12/1971" keyEvent("date", "7/2/19uq") ## [1] "7/2/19" keyEvent("hour", "13") ## [1] "13" keyEvent("hour", "25") ## [1] "23"