hoosier121
MIS
Hi,
I have a main form as toplevel that calls my "treeview" form from the activate event, so that is is loaded when the program is first run. The treeview form has a treeview control on the left side and client info on the right side. I use the treeview as navigation to open other forms that are related to that client. In a click event I am wanting to close all the forms that are not the treeview or main form. As of now I have the following code:
LOCAL lncounter
lncounter = 1
DO WHILE lncounter <= _Screen.FormCount
llFormName = _SCREEN.Forms[lncounter].Name
lncounter= lncounter+ 1
IF llFormName != "clienttree" OR llFormname != "main"
RELEASE WINDOWS (llFormName)
ENDIF
ENDDO
This works, but it is also closing the treeview form, which is then reloaded ( I think by the activate event) and the record pointer on client info goes back to the top.
Please Help John
Everything I needed to know I learned from Yoda.
I have a main form as toplevel that calls my "treeview" form from the activate event, so that is is loaded when the program is first run. The treeview form has a treeview control on the left side and client info on the right side. I use the treeview as navigation to open other forms that are related to that client. In a click event I am wanting to close all the forms that are not the treeview or main form. As of now I have the following code:
LOCAL lncounter
lncounter = 1
DO WHILE lncounter <= _Screen.FormCount
llFormName = _SCREEN.Forms[lncounter].Name
lncounter= lncounter+ 1
IF llFormName != "clienttree" OR llFormname != "main"
RELEASE WINDOWS (llFormName)
ENDIF
ENDDO
This works, but it is also closing the treeview form, which is then reloaded ( I think by the activate event) and the record pointer on client info goes back to the top.
Please Help John
Everything I needed to know I learned from Yoda.