I have an app that runs fine in development but not when it is compiled to an .exe
In a button (form1.button) click method, I call another form (form2) with data in a grid. The user selects a record from the form2.grid and double clicks which closes form2 and inserts the selected data in form1. This process is repeated until all desired lines are selected
When I compile this, the first time form1.button is clicked and form2 data selected, the selected data is not inserted in form1. If you click form1.button again (and each time thereafter), it works fine.
I have a READ EVENTS statement immediately after my DO FORM form2 statement.
It appears that the first time I run the form1.button.click method, the READ EVENTS does not stop the processing while waiting for the DO FORM form2. After the first time the READ EVENTS does.
Does anyone have any insight into this.
Alan Arons
In a button (form1.button) click method, I call another form (form2) with data in a grid. The user selects a record from the form2.grid and double clicks which closes form2 and inserts the selected data in form1. This process is repeated until all desired lines are selected
When I compile this, the first time form1.button is clicked and form2 data selected, the selected data is not inserted in form1. If you click form1.button again (and each time thereafter), it works fine.
I have a READ EVENTS statement immediately after my DO FORM form2 statement.
It appears that the first time I run the form1.button.click method, the READ EVENTS does not stop the processing while waiting for the DO FORM form2. After the first time the READ EVENTS does.
Does anyone have any insight into this.
Alan Arons