As a standalone procedure in the data sheet, this works perfectly:
field “County”
editcell
closeactiveobject
The goal is to tab from Field A to field B, open a textlistobject form, choose an option, close the window and tab to field C.
When I tab from the previous field into the «County» field, it calls a procedure that should open a form with a textlistobject that has a list of options. When I click on an option, it should enter that choice into the County field and close the form. Currently, when I tab into the County field, if the form opens while the field is active, Panorama X crashes. Adding closeactiveobject at the beginning of the procedure does nothing. If I put the code above in the procedure, add a Wait statement, and include an openform statement, it jumps to the field after County («Run»), it becomes active, then the form opens. I can click on a choice, the form closes, and the text is entered into the County field but the Run field is open. Unfortunately, it can’t be edited or closed unless I click in it. I would like closeactiveobject to close the Run field if I put it in the code tab of the textlistobject but it ignores the command. Editcell is ignored as well. Is there a better way to do this?
The person using this database had 300 choices in the choices tab of a Panorama 6 database, but this seems unworkable in Panorama X.