MC-Basic:WITHGLOBAL/zh-hans
语言: | English • 中文(简体) |
---|
Like the "WITH" statement, the motion element will operated without having to explicitly indicate the motion element name.
The default motion element exists only after a WithGlobal statement, which can be terminated in three ways:
- New WithGlobal statement, declared in every scope.
- "reset all" command applied within the Terminal.
- Local With that valid only as the local task runs.
NOTE | |
Unlike using local/Terminal WITH statement - which require With..... → End With methods, when using the "WithGlobal" statement, there's NO need to declare "End WithGlobal". |
Syntax
WithGlobal <element name>
Availability
4.17.6
Scope
Configuration, Task or Terminal
- In the Terminal scope, the specified motion element becomes the default motion element for the system, that replace ALL previous WITH - CONFIG/WITHGLOBAL statement, from all scopes.
- The way to "kill" a WithGlobal statement that was declared, is to use reset all command, and change the Config.prg file as you wish – or to issue another WithGlobal command..
Limitations
- WithGlobal commands can't be nested, As there is noEnd WinthGlobal statement.
Examples
?'"`UNIQ--syntaxhighlight-00000001-QINU`"'?
Can be simplified using:
?'"`UNIQ--syntaxhighlight-00000002-QINU`"'?