Dominique
Dominique

Reputation: 17551

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. One of them is meant to contain a date, having 99/99/9999 as a format. Due to that format, when emptying the field (selecting the content and press the DEL button), I see "__/__/____" on screen (the underscores mean spaces).

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?

Thanks in advance
Dominique

Upvotes: 0

Views: 598

Answers (1)

Mike Fechner
Mike Fechner

Reputation: 7192

Check for the INPUT-VALUE property returning ?.

Upvotes: 2

Related Questions