Difference between revisions of "MC-Basic:BACKTRACE$()"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{MC-Basic |SHORT FORM= |SYNTAX= BackTrace$ ( <''task name string''>) |AVAILABILITY= Since Version 4.5.3 |DESCRIPTION= Prints the function stack of the task, including fun...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:BACKTRACE$()}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 12: Line 13:
 
Prints the function stack of the task, including function or subroutine name.
 
Prints the function stack of the task, including function or subroutine name.
  
{{Note|BackTrace can only be executed for a task that is not in the running state.}}
 
  
 
|TYPE=
 
|TYPE=

Latest revision as of 06:22, 24 April 2017

Language: English  • 中文(简体)‎

Prints the function stack of the task, including function or subroutine name.

Syntax

BackTrace$ ( <task name string>)

Availability

Since Version 4.5.3

Type

<task name string>: string

Range

<task name string>: name of a task that is loaded in memory

Scope

Task or Terminal

Limitations

  • Read only.
  • Task must be loaded in memory.

Examples

Common shared x as string

x = BackTrace$ (“XYRot.prg”)

Common shared TaskName as string = “XYRot.prg”

x = BackTrace$$ (TaskName)

See Also