Difference between revisions of "MC-Basic:SCOPE"
m (1 revision) |
(Added reference to MC-Basic:PROGRAMNAME) |
||
(4 intermediate revisions by 2 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