MC-Basic:task.MAINFILENAME

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ?''<task>''.<MainFileName> ? MainFileName |AVAILABILITY= from 0.4.2.4 |DESCRIPTION= Tasks may receive new temporal names when loaded through…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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