stop the process of the program to the occurrence of an event RRS feed

  • Question

  • Hello everyone, I apologize for my English, I use google translator, wanted to know if there is a function that blocks the process of a program on the occurrence of an event (such as the click of a particular button), and come back when you start the program without the program is closed


    Tuesday, November 17, 2015 9:02 AM


All replies

  • (translated by Google translator)

    This question is incomprehensible. How you can "start the program without the program is closed"?

    Tuesday, November 17, 2015 9:29 AM
  • maybe I explained myself wrong,
      if you found during the program you get a screen that says: "Do you want to continue?" with the "yes" or "no", if I click on "No", the program remains on the same interface without closing
    Tuesday, November 17, 2015 9:59 AM
  • (translated by Google translator)

    You can collapse (minimize) the program window. If in your code will not run an infinite loop, the "minimize window" is a good option for your problem.

    Maybe I do not understand you.

    Tuesday, November 17, 2015 10:24 AM
  • Absolutely not sure if i understood right. Best you come up with a compact sample.

    I would guess maybe something like:

    continue = "True"
    Controls.ButtonClicked = OnButtonClick
      While continue = "True"
        ' ... do something again & again while continue flag is "True"
        '...  else ignore the While loop
    Goto MainLoop
    ' Event
    Sub OnButtonClick     ' controls processing the While loop above
      ' ...
      continue = "False"    ' switch off permanently
      ' ... or switch on/off  on every ButtonClick
      If continue = "True" Then
        continue = "False"
        continue = "True"
      ' ...

    Tuesday, November 17, 2015 11:26 AM
  • thanks to the availability guys, they managed somehow to solve everything
    • Marked as answer by Carmenello Tuesday, November 17, 2015 1:56 PM
    Tuesday, November 17, 2015 1:56 PM