At cursor selection释疑

本文详细解读screen程序中Module与ATCURSOR-SELECTION语句的层次关系,包括不同组合情况下的执行顺序,如Module结合了Filed时的特殊规则,以及多次出现相同ScreenField时的执行策略。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

关于这个命令我们在screen 程序中经常用到,但要注意,它可能当多个 Module...At cusor-selection... ... End Module存在时你有可能搞不清之间的关系

以下是对它的层次关系的详解:

==================================================================================================================

The call hierarchy of the different combinations is as follows:

  • If a MODULE... AT CURSOR-SELECTION statement is executed that was combined with FIELD, a statement without FIELD is not executed.(如果程序中的AT CURSOR-SELECTION对应的Module结合了Filed,那么没带Filed开头的Module将不执行)
  • If a statement using FIELD appears more than once for the same screen field <f>, only the first statement is executed. (多个Filed Module .. At cursor-selection出现时候,只有第一个会执行)
  • If a statement without FIELD occurs more than once, only the last statement is executed(如果都没是 Module...At cursor-selection形式的,只有最后一个Module会执行,前面的统统不执行).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值