此图标在Delphi代码编辑器中是什么意思?

问题描述

在Delphi 10.2.3中,我最近开始看到这个奇怪的图标。有谁知道这意味着什么?我说的是带有减号的红色圆圈。

Screenshot of a line of code: "property Halt: Boolean read FHalt write FHalt". At the end of the line,there is an icon: a red circle with a white minus sign inside it.

解决方法

应该使用此图标通知您当前行调用Halt系统过程。

您会使用ContinueBreakExit得到类似的图标:

Screenshot of editor window with Continue,Break,Exit,and Halt symbols

在这种情况下,您有一个不幸的名称为Halt的属性,因此编辑器将此属性与Halt系统过程相混淆。

使用此属性名称是一个坏主意。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...