I'm getting a "File in Use" error.
I have a form that opens and obtains a piece of data from the user which is stored in a public variable.
... *** This is code in Form1 which hands things off to a ... *** 2nd form
... PUBLIC Student_id
... Student_ID=(VAL((thisform.list2.Value)))
... thisform.Hide()
... DO FORM forms\student_edit.scx && Second Form
The second form (student_edit.scx) opens and displays data from 3 linked tables. Data is edited and saved properly and the second form closes and disappears.
The programs seem to run just fine but I get a "File in Use" error when I try to modify the Form1 after running it previously.
I suspect that since I just issued a "thisform.hide()" method that form1 is still hanging around in memory ... behind the scenes, so to speak.
How do I make sure the first form closes when the second form closes?
I have a form that opens and obtains a piece of data from the user which is stored in a public variable.
... *** This is code in Form1 which hands things off to a ... *** 2nd form
... PUBLIC Student_id
... Student_ID=(VAL((thisform.list2.Value)))
... thisform.Hide()
... DO FORM forms\student_edit.scx && Second Form
The second form (student_edit.scx) opens and displays data from 3 linked tables. Data is edited and saved properly and the second form closes and disappears.
The programs seem to run just fine but I get a "File in Use" error when I try to modify the Form1 after running it previously.
I suspect that since I just issued a "thisform.hide()" method that form1 is still hanging around in memory ... behind the scenes, so to speak.
How do I make sure the first form closes when the second form closes?