Datagrid - Detecting Return in Field
Posted: Fri Jan 02, 2015 11:37 pm
Hi,
I would like my code to react to the return key being pressed in one of the two fields on my datagrid form. I have trapped the key press in both a custom field editor script and the script of the datagrid group but I am unable to determine which field is being edited.
This code just populates the variable thefield with the name of the field editor. Is there a way of getting the name of the field on the datagrid ?
Simon K
I would like my code to react to the return key being pressed in one of the two fields on my datagrid form. I have trapped the key press in both a custom field editor script and the script of the datagrid group but I am unable to determine which field is being edited.
Code: Select all
on returnInField
put the short name of the target into theField
put "Return in Field reports that the field name is " & theField & Cr after fld "debug"
if the autotab of me then
send "DeleteFieldEditor" to the dgControl of me in 0 seconds
else
pass returnInField
end if
end returnInField
Simon K