please help!!!!!!!!i cant fully close my textwindow in one shot

Answered 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





All Replies

  • Wednesday, May 02, 2012 7:03 PM
    Moderator
     
     

    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 PM
    Answerer
     
     Answered
    To close all TextWindows, as well as the program itself, use Program.End()
  • Wednesday, May 02, 2012 10:34 PM
    Moderator
     
     Answered Has Code

    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.

  • Thursday, May 03, 2012 10:08 AM
     
     Answered

    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.