Difference between revisions of "MC-Basic:SCOPE"

From SoftMC-Wiki
Jump to: navigation, search
Line 60: Line 60:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems: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]]
  
  
 
}}
 
}}

Revision as of 08:39, 22 May 2014

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