please help!!!!!!!!i cant fully close my textwindow in one shot
-
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.
thanks
- Edited by the newcomer Wednesday, May 02, 2012 6:35 PM
- Edited by the newcomer Wednesday, May 02, 2012 6:56 PM
- Edited by the newcomer Wednesday, May 02, 2012 6:56 PM
- Edited by the newcomer Wednesday, May 02, 2012 7:01 PM
All Replies
-
Wednesday, May 02, 2012 7:03 PMModerator
Welcome,
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
ok
-
Wednesday, May 02, 2012 7:08 PM
If (age*2*2*2=age*2*2*2)Then
TextWindow.Hide()
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 PMAnswerer
To close all TextWindows, as well as the program itself, use Program.End()- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, October 15, 2012 4:50 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Tuesday, October 23, 2012 12:15 AM
-
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() EndIf
Can you post all the code that can be run without change and shows the problem. Usually there is only one TextWindow.
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, October 15, 2012 4:50 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Tuesday, October 23, 2012 12:15 AM
-
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.
Kirk.
- Edited by Kirkkaf Thursday, May 03, 2012 10:08 AM
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, October 15, 2012 4:50 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Tuesday, October 23, 2012 12:15 AM

