How to resolve the algorithm Window creation step by step in the Run BASIC programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Window creation step by step in the Run BASIC programming language
Table of Contents
Problem Statement
Display a GUI window. The window need not have any contents, but should respond to requests to be closed.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Window creation step by step in the Run BASIC programming language
Source code in the run programming language
html "Close me!"
button #c, "Close Me", [doExit]
wait
' -----------------------------------------------------------------------------------
' Get outta here. depending on how may layers you are into the window (history level)
' If you are at the top level then close the window
' ----------------------------------------------------------------------------------
[doExit]
html "
var a = history.length;
a = a - 1;
window.open('','_parent','');
window.close();
history.go(-a);
"
wait
You may also check:How to resolve the algorithm Iterated digits squaring step by step in the FreeBASIC programming language
You may also check:How to resolve the algorithm Ludic numbers step by step in the Sidef programming language
You may also check:How to resolve the algorithm Proper divisors step by step in the GFA Basic programming language
You may also check:How to resolve the algorithm Factorial step by step in the XPL0 programming language
You may also check:How to resolve the algorithm Hunt the Wumpus step by step in the Python programming language