Difference between revisions of "MC-Basic:ERROR"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ?Error<br> ?''<task>''.Error |AVAILABILITY= All versions |DESCRIPTION= Queries the last system error message. If the keyword is prefixed wi…')
 
m (Text replace - "Axystems:" to "")
 
(10 intermediate revisions by 4 users not shown)
Line 6: Line 6:
 
?Error<br>
 
?Error<br>
  
?''<task>''.Error
+
?<''task''>.Error
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 14: Line 14:
 
Queries the last system error message. If the keyword is prefixed with a task name, the error message corresponding to the last error in that task is returned
 
Queries the last system error message. If the keyword is prefixed with a task name, the error message corresponding to the last error in that task is returned
  
This   command returns an error message that includes the error number. The   ?ERRORNUMBER query returns only the number of the error.
+
{{Note|This command returns an error message that includes the error number. The ?ERRORNUMBER query returns only the number of the error.}}
  
 
|TYPE=
 
|TYPE=
Line 32: Line 32:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
Read only
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 40: Line 40:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:COMMON or DIM SHARED var name AS NOTE or ERROR ascii <NUMBER|COMMON or DIM SHARED var name AS NOTE or ERROR ascii <NUMBER]]
+
* [[MC-Basic:COMMON or DIM SHARED var name AS NOTE or ERROR ascii <NUMBER|COMMON or DIM SHARED var name AS NOTE or ERROR ascii <NUMBER]]
* [[Axystems:MC-Basic:ERRORHISTORY|ERRORHISTORY]]
+
* [[MC-Basic:ERRORHISTORY|ERRORHISTORY]]
* [[Axystems:MC-Basic:ERRORHISTORYCLEAR|ERRORHISTORYCLEAR]]
+
* [[MC-Basic:ERRORHISTORYCLEAR|ERRORHISTORYCLEAR]]
* [[Axystems:MC-Basic:ERRORNUMBER|ERRORNUMBER]]
+
* [[MC-Basic:ERRORNUMBER|ERRORNUMBER]]
 
 
  
 +
[[Category:MC-Basic:Error Handling|ERROR]]
 
}}
 
}}

Latest revision as of 09:21, 22 May 2014

Queries the last system error message. If the keyword is prefixed with a task name, the error message corresponding to the last error in that task is returned

NOTE-Info.svgNOTE
This command returns an error message that includes the error number. The ?ERRORNUMBER query returns only the number of the error.

Syntax

?Error

?<task>.Error

Availability

All versions

Scope

Task or Terminal

Limitations

Read only

Examples

?Error

?MyTask.prg.error

See Also