Learn R Programming

RSurvey (version 0.5.0)

keyEvent: Content Control within Tk Entry Widget

Description

Controls the character string content within a Tk entry widget.

Usage

keyEvent(ent.typ, ent.str = "", rm.data = FALSE)

Arguments

ent.typ
character; the entry type
ent.str
character; the entry value
rm.data
logical; if TRUE the existing processed data is removed

Value

  • A character string with strict adherence to the entry type.

Details

The entry types include: real, integer, hour, minute, second, and date. If rm.data is TRUE then both the data.pts and data.grd components of srvy.dat are removed.

See Also

tkentry

Examples

Run this code
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"

Run the code above in your browser using DataLab