简体   繁体   English

如何检查因格式不为空的“空”填写字段?

[英]How to check an “empty” fill-in field which is not empty due to the format?

I have a window, containing some fill-in fields.我有一个 window,包含一些填写字段。 One of them is meant to contain a date, having 99/99/9999 as a format.其中一个用于包含日期,格式为99/99/9999 Due to that format, when emptying the field (selecting the content and press the DEL button), I see "__/__/____" on screen (the underscores mean spaces).由于这种格式,在清空字段时(选择内容并按DEL按钮),我在屏幕上看到"__/__/____" (下划线表示空格)。

In order to check if this fill-in field is empty, currently the source code does this as follows:为了检查这个填写字段是否为空,目前源码是这样做的:

IF Date_Fill-In:SCREEN-VALUE <> "/  /"

As you can see, this is heavily dependent on the format of the fill-in field.如您所见,这在很大程度上取决于填写字段的格式。

Is there a built-in function I can use to check if the screen-value of a fill-in field is empty, without needing to check the format?是否有内置的 function 可以用来检查填充字段的屏幕值是否为空,而无需检查格式?

Thanks in advance提前致谢
Dominique多米尼克

Check for the INPUT-VALUE property returning?.检查 INPUT-VALUE 属性是否返回?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM