keyEvent               package:RSurvey               R Documentation

_C_o_n_t_e_n_t _C_o_n_t_r_o_l _w_i_t_h_i_n _T_k _E_n_t_r_y _W_i_d_g_e_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Controls the character string content within a Tk entry widget.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

 ent.typ: the entry type

 ent.str: the entry value

 rm.data: a logical; if 'TRUE' the existing processed data is removed.

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

     A character string with strict adherence to the entry type.

_A_u_t_h_o_r(_s):

     Fisher, J. C.

_S_e_e _A_l_s_o:

     'tkentry'

_E_x_a_m_p_l_e_s:

     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"

