在表单上标记必填字段,如果未填写有效值

问题描述:

如果您创建了新的数据集,那么尚未设置的必填字段将标记为一条红色的摆动线。

if you create a new dataset, mandatory fields which are not set yet are marked with a wiggly red line.

看来,只有字符串值(或几个字段,但至少没有整数)被标记为这种方式。

it seems, that only string-values ( or several fields, but at least no integers ) are marked this way.

如果使用整数引用(基于1),则关于每个缺省值的字段填充0,导致红线消失。

if integer-references are used ( 1-based ), the regarding fields are filled with 0 per default which causes the red line to disappear.

在那里任何方式离开这些字段为空默认情况下?

is there any way to leave those fields empty per default?

感谢提示!

对于整数和实数字段,您可以将 ShowZero 属性设置为No(在控件或扩展数据类型上)。然后零值将出现一个红色的波浪线。

For integer and real fields you could set the ShowZero property to No (on the control or extended data type). Then zero values will appear with a red wave line.

对于新的基地枚举留下一个空的零枚举值(按照惯例命名为None)。

For new base enums leave a blank zero enum value (by convention name it None).