Wednesday, May 02, 2012 6:31 PM
please help i am just an s2 student.
i cant fully close my text window because i used too much if and now every time i use TextWindow.Hide()
the other if pop up
can a kind person please tell me the code to end all the codes/if.
or please type down any suggestion you may have.
please type down what extra information you need.
Wednesday, May 02, 2012 7:03 PMModerator
Please post a small code that shows the problem - I'm not sure I fully understand the issue.
Wednesday, May 02, 2012 7:06 PM
Wednesday, May 02, 2012 7:08 PM
and then many other textwindows popup and i want to fully close all of them in one go/stop the popups from popping up..
Wednesday, May 02, 2012 10:26 PMAnswererTo close all TextWindows, as well as the program itself, use Program.End()
Wednesday, May 02, 2012 10:34 PMModerator
Your code doesn't show any TextWindows, if I add the minimum to make it run:
age = 10 If (age*2*2*2=age*2*2*2)Then TextWindow.Hide() EndIfCan you post all the code that can be run without change and shows the problem. Usually there is only one TextWindow.
Thursday, May 03, 2012 10:08 AM
If statements only run if the conditions within them are TRUE so if you don't want them all the run then you need to make the conditions are FALSE. It's hard to see your problem when you have not posted enough code but it might be a case of you nesting your If statements.
Post all of your code if possible.