MC-Basic:PROGRAMCONTEXT/zh-hans

From SoftMC-Wiki
< MC-Basic:PROGRAMCONTEXT
Revision as of 08:41, 10 April 2017 by Chi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎


格式

    ?PROGRAMCONTEXT

可用版本

3.3以上

描述

该查询返回一个Long值,指明了被查询任务的环境类型。ProgramContext只能用来查询任务,不能指向其它任务。

  1: 终端
2: 配置文件
3:用户任务模块 (以“PRG”为后缀)
4: 事件模块
5: 事件条件 6: 系统错误模块? 7: 错误模块 8: 记录器

类型

Long

取值范围

1 to 8



使用范围

Configuration, Task or Terminal

限制

Read Only.

例子

From Terminal:

  -->?ProgramContext	  ‘ Should return 1


Or within Task1.prg :

  Program
     ProgramContext            ‘ Should return 3
     Onevent Event1 ProgramContext = 5
        ProgramContext 	‘ Should return 4
     End Onevent
     Eventon Event1
  End Program

可查阅