Difference between revisions of "MC-Basic:SCOPE"
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ?Scope |AVAILABILITY= from 0.4.0.22 |DESCRIPTION= This query returns a current scope : PROGRAM of Function/Subroutine Name as a string. …') |
(Added reference to MC-Basic:PROGRAMNAME) |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Languages|MC-Basic:SCOPE}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
| Line 60: | Line 61: | ||
|SEE ALSO= | |SEE ALSO= | ||
| − | * [[ | + | * [[MC-Basic:PROGRAM ... END PROGRAM|PROGRAM ... END PROGRAM]] |
| − | * [[ | + | * [[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