Create three forms: A, B, C. Do not connect them to a database (the same behavior occurs when they are).
Place a button on each form.
The button on form A contains this code on clicked:
this.accept();
import '/frm_B' as dlg
dlg.exec()
The button on form B contains the same code accept it is opening form C.
Form C will open form A.
Execute form A. Everything works until form C tries to re-open form A.
The error message below appears twice with the same timestamp:
20:57:04 frm_A: Import recursion.
I initially had two forms and wanted to go from form B to form A. Same error.
Is there a way to do this? Where one can open and close forms and re-open them from other forms?
Thanks.