closeField

Typemessage
Dictionaryandroid.field
LibraryAndroid Native Field
Syntax
closeField
Associationscom.livecode.widget.native.android.field
Summary

Sent to a field when the focus is being removed from that field and the field's content has changed.

OSandroid
Example
on closeField -- make sure the user has entered a valid date
  local tText
  put the text of me into tText
  if tText is not a date then
    beep
    answer "Please enter a date."
    set the selectedRange of the target to "1," & \
       the number of chars in tText
  end if
end closeField
Description

Handle the closeField message if you want to make sure a field's content is correct after it has been changed.