MC-Basic:WITHGLOBAL/zh-hans

From SoftMC-Wiki
Jump to: navigation, search
语言: 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-Info.svgNOTE
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=

}}