Difference between revisions of "MC-Basic:task.MAINFILENAME"

From SoftMC-Wiki
Jump to: navigation, search
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:task.MAINFILENAME}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 51: Line 52:
 
|SEE ALSO=
 
|SEE ALSO=
 
* [[MC-Basic:LOAD$|LOAD$]]
 
* [[MC-Basic:LOAD$|LOAD$]]
* [[Axystems:MC-Basic:TASKLIST|TASKLIST]]
+
* [[MC-Basic:TASKLIST|TASKLIST]]
* [[Axystems:MC-Basic:PROGRAMNAME|PROGRAMNAME]]
+
* [[MC-Basic:PROGRAMNAME|PROGRAMNAME]]
  
[[Category:Axystems:MC-Basic:Task Control|task.MAINFILENAME]]
+
[[Category:MC-Basic:Task Control|task.MAINFILENAME]]
 
}}
 
}}

Latest revision as of 07:52, 2 May 2017

Language: English  • 中文(简体)‎

Tasks may receive new temporal names when loaded through the Load$…As command. MainFileName property returns the original file name of the task. When queried within a function or subroutine of a library, MainFileName will return the name of the calling task.

Syntax

?<task>.<MainFileName>

? MainFileName

Availability

from 0.4.2.4

Type

String

Scope

Task or Terminal

Limitations

Read Only.Task must be loaded in memory.

Examples

--> Load$ “Task1.prg” As “Task2.prg”

-->?Task2.prg.MainFileName

--> Task1.prg


Or from the Task2.prg:

Program

? MainFileName ‘ should return Task1.prg

End Program

See Also