Difference between revisions of "MC-Basic:VARLIST"

From SoftMC-Wiki
Jump to: navigation, search
m (added note about the option to use ? as input of varlist)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{MC-Basic
+
 
 +
  {{Languages|MC-Basic:VARLIST}} {{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
  
Line 7: Line 8:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
All versions
+
All versions<br>
 +
Returns a string and can be used in all scopes from version 4.15.1.
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This query returns a list of the variable and constant names defined in the system. If wildcards are used, the query returns the proper existing variable or constant data. The variable types and their values are displayed in the following format:<br>
+
This query returns a list of the variable and constant names defined in the system. If wildcards are used, the query returns the proper existing variable or constant data. when querying varlist of a namespaced variable, question-mark (?) can be used instead of wildcard. The variable types and their values are displayed in the following format:<br>
 
       ''{const} <type> <var_name> = <''value''>''
 
       ''{const} <type> <var_name> = <''value''>''
  
Line 16: Line 18:
  
 
|TYPE=
 
|TYPE=
 +
<''return'' ''value''>: String<br>
  
  
Line 28: Line 31:
  
 
|SCOPE=
 
|SCOPE=
Terminal
+
Configuration, Task or Terminal
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Line 45: Line 48:
 
* [[MC-Basic:AXISLIST|AXISLIST]]
 
* [[MC-Basic:AXISLIST|AXISLIST]]
 
* [[MC-Basic:GROUPLIST|GROUPLIST]]
 
* [[MC-Basic:GROUPLIST|GROUPLIST]]
* [[Axystems:MC-Basic:TASKLIST|TASKLIST]]
+
* [[MC-Basic:TASKLIST|TASKLIST]]
  
[[Category:Axystems:MC-Basic:Declarations|VARLIST]]
+
[[Category:MC-Basic:Declarations|VARLIST]]
 
}}
 
}}

Latest revision as of 13:48, 10 March 2020

 
Language: English  • 中文(简体)‎
This query returns a list of the variable and constant names defined in the system. If wildcards are used, the query returns the proper existing variable or constant data. when querying varlist of a namespaced variable, question-mark (?) can be used instead of wildcard. The variable types and their values are displayed in the following format:

       {const} <type> <var_name> = <value>

                             The constants names are shown with  the const word .

Syntax

?VarList {<var_name>}

Availability

All versions
Returns a string and can be used in all scopes from version 4.15.1.

Type

<return value>: String

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

-->?varlist

-->?varlist i*                        'Returns the variables that start with the letter i

-->LONG iVariable = 221

-->CONST LONG iConst = 1

See Also