Difference between revisions of "MC-Basic:WITHGLOBAL/zh-hans"
(Created page with " {{Languages|MC-Basic:WITHGLOBAL}} {{MC-Basic |SHORT FORM= |SYNTAX= WithGlobal ''<element name>'' |AVAILABILITY= 4.17.6 |DESCRIPTION= This command sets a Default Mo...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Languages|MC-Basic:WITHGLOBAL}} | |
+ | == 缩写 == | ||
− | + | == 格式 == | |
− | |||
− | |||
WithGlobal ''<element name>'' | WithGlobal ''<element name>'' | ||
− | |AVAILABILITY= | + | |AVAILABILITY= 4.17.6 |
− | 4.17.6 | ||
− | |DESCRIPTION= | + | |DESCRIPTION= This command sets a Default Motion Element (axis or group) that replace previous [[MC-Basic:WITH|WITH]] statement, sets on the CONFIG.PRG file, or didn't exist at all.<br/> Like the "WITH" statement, the motion element will operated without having to explicitly indicate the motion element name. |
− | This command sets a Default Motion Element (axis or group) that replace previous [[MC-Basic:WITH|WITH]] statement, sets on the CONFIG.PRG file, or didn't exist at all. <br> | ||
− | 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. | |
− | * New '''WithGlobal''' statement, declared in every scope. | + | *"reset all" command applied within the Terminal. |
− | * "reset all" command applied within the Terminal. | + | *[[MC-Basic:WITH|Local With]] that valid only as the local task runs. |
− | * [[MC-Basic:WITH|Local With]] that valid only as the local task runs. | ||
− | |||
{{Note|Unlike using local/Terminal [[MC-Basic:WITH|WITH]] statement - which require ''With..... → End With'' methods, when using the "WithGlobal" statement, there's '''NO''' need to declare "End WithGlobal".}} | {{Note|Unlike using local/Terminal [[MC-Basic:WITH|WITH]] statement - which require ''With..... → End With'' methods, when using the "WithGlobal" statement, there's '''NO''' need to declare "End WithGlobal".}} | ||
|TYPE= | |TYPE= | ||
− | |||
|RANGE= | |RANGE= | ||
− | |||
|UNITS= | |UNITS= | ||
− | |||
|DEFAULT= | |DEFAULT= | ||
+ | |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<big>/</big>WITHGLOBAL statement, from all scopes. | |
− | |||
− | |||
− | * In the Terminal scope, the specified motion element becomes the default motion element for the system, that replace ALL previous WITH - CONFIG<big>/</big>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.. | + | *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= | |LIMITATIONS= | ||
− | * ''WithGlobal'' commands can't be nested, As there is no''End WinthGlobal'' statement. | + | *''WithGlobal'' commands can't be nested, As there is no''End WinthGlobal'' statement. |
|EXAMPLE= | |EXAMPLE= | ||
Line 50: | Line 40: | ||
?'"`UNIQ--syntaxhighlight-00000001-QINU`"'? | ?'"`UNIQ--syntaxhighlight-00000001-QINU`"'? | ||
− | + | Can be simplified using: | |
− | Can be simplified using: | ||
− | |||
?'"`UNIQ--syntaxhighlight-00000002-QINU`"'? | ?'"`UNIQ--syntaxhighlight-00000002-QINU`"'? | ||
|SEE ALSO= | |SEE ALSO= | ||
− | |||
}} | }} |
Latest revision as of 07:35, 8 May 2019
语言: | English • 中文(简体) |
---|
缩写
格式
WithGlobal <element name>
|AVAILABILITY= 4.17.6
|DESCRIPTION= This command sets a Default Motion Element (axis or group) that replace previous WITH statement, sets on the CONFIG.PRG file, or didn't exist at all.
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". |
|TYPE=
|RANGE=
|UNITS=
|DEFAULT=
|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.
|EXAMPLE=
?'"`UNIQ--syntaxhighlight-00000001-QINU`"'?
Can be simplified using:
?'"`UNIQ--syntaxhighlight-00000002-QINU`"'?
|SEE ALSO=
}}