How to resolve the algorithm Hello world/Graphical step by step in the M2000 Interpreter programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Hello world/Graphical step by step in the M2000 Interpreter programming language
Table of Contents
Problem Statement
Display the string Goodbye, World! on a GUI object (alert box, plain window, text area, etc.).
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Hello world/Graphical step by step in the M2000 Interpreter programming language
Source code in the m2000 programming language
Module CheckIt {
Declare Simple Form
\\ we can define form before open
Layer Simple {
\\ center Window with 12pt font, 12000 twips width and 6000 twips height
\\ ; at the end command to center the form in current screen
Window 12, 12000, 6000;
\\ make layer gray and split screen 0
Cls #333333, 0
\\ set split screen to 3rd line, like Cls ,2 without clear screen
Scroll Split 2
Cursor 0, 2
}
With Simple, "Title", "Hello Form"
Function Simple.Click {
Layer Simple {
\\ open msgbox
Print Ask("Hello World")
Refresh
}
}
\\ now open as modal
Method Simple, "Show", 1
\\ now form deleted
Declare Simple Nothing
}
CheckIt
Module CheckIt {
Declare Simple Form
With Simple, "Title", "Hello World"
Method Simple, "Show", 1
Declare Simple Nothing
}
CheckIt
You may also check:How to resolve the algorithm Call a function in a shared library step by step in the QB64 programming language
You may also check:How to resolve the algorithm Sort an array of composite structures step by step in the REXX programming language
You may also check:How to resolve the algorithm Extreme floating point values step by step in the Fortran programming language
You may also check:How to resolve the algorithm Dragon curve step by step in the POV-Ray programming language
You may also check:How to resolve the algorithm Flow-control structures step by step in the J programming language