Difference between revisions of "MC-Basic:SCOPE"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:SCOPE to MC-Basic:SCOPE: Global renaming of Axystems: namespace into (Main):)
(Added reference to MC-Basic:PROGRAMNAME)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:SCOPE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 62: Line 63:
 
* [[MC-Basic:PROGRAM ... END PROGRAM|PROGRAM ... END PROGRAM]]
 
* [[MC-Basic:PROGRAM ... END PROGRAM|PROGRAM ... END PROGRAM]]
 
* [[MC-Basic:FUNCTION ... END FUNCTION|FUNCTION ... END FUNCTION]]
 
* [[MC-Basic:FUNCTION ... END FUNCTION|FUNCTION ... END FUNCTION]]
 +
* [[MC-Basic:PROGRAMNAME|PROGRAMNAME]]
 +
  
  
 
}}
 
}}

Latest revision as of 08:14, 11 September 2023

Language: English  • 中文(简体)‎

This query returns a current scope : PROGRAM  of  Function/Subroutine Name as a string.

Syntax

?Scope

Availability

from 0.4.0.22

Type

String

Scope

Task

Limitations

Read Only .

Examples

program

?Scope  ‘ returns PROGRAM

call sub1

?func(1)

end program


sub sub1

?Scope ‘ returns SUB1 – the subroutine name

end sub


function func(byval i1 as long) as long

?Scope  ‘ returns  FUNC – the function name

func=i1

end function

See Also