[↑]
ENVSTAT
- Set the status of the main interpreter
ENVSTAT Status
- Get the status of the main interpreter
ENVSTAT()
- Get the status of the main interpreter
ENVSTAT OUT Status,ExecutionSlot,EditSlot
- Get the status of the main interpreter
ENVSTAT OUT Status,ErrorNumber,ErrorArgumentNumber,ErrorSlot,ErrorCharacterPosition,ErrorLine
1. Set the status of the main interpreter
ENVSTAT Status
・This command has meaning only within subprograms. Nothing happens when used from the main program or direct mode.
Argument
Status
Main interpreter status to be set
・Only 0 can be specified.
・It is not set when the current status is 3 or 4.
2. Get the status of the main interpreter
ENVSTAT()
Return Value
0 | Waiting in Direct Mode |
1 | Execution Suspended |
2 | Execution Stopped Due to Error |
3 | Running Program |
4 | Editing Program |
3. Get the status of the main interpreter
ENVSTAT OUT Status,ExecutionSlot,EditSlot
Return Value
Status
0 | Waiting in Direct Mode |
1 | Execution Suspended |
2 | Execution Stopped Due to Error |
3 | Running Program |
4 | Editing Program |
ExecutionSlot
Current execution slot
EditSlot
Current edit slot
4. Get the status of the main interpreter
ENVSTAT OUT Status,ErrorNumber,ErrorArgumentNumber,ErrorSlot,ErrorCharacterPosition,ErrorLine
Return Value
Status
0 | Waiting in Direct Mode |
1 | Execution Suspended |
2 | Execution Stopped Due to Error |
3 | Running Program |
4 | Editing Program |
ErrorNumber
If an error has occurred, a value other than 0 is returned.
ErrorArgumentNumber
If the argument that occurred when the error occurred is known, a positive value is returned.
ErrorSlot
If an error has occurred, the program slot that occurred is returned.
ErrorCharacterPosition
If an error has occurred, the character position from the beginning of the generated source code is returned.
ErrorLine
If an error has occurred, the line number in the source code that occurred is returned.
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the
official reference site
of the
SmileBoom Co.Ltd.
that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it.
For automatic update, contents may become improper.
Please confirm the correct content in an official site.
June 3, 2020
by mim
OK
|