Skip to main content

Can an If statement in Dialog system recognize a blank field?  I have tried to code for it, but it doesn't seem to recognize the value.

For example, I've tried these variations, and DO-SOMETHING is not done, it just goes to the next line. 

IF= EFTOPTOUT ' ' DO-SOMETHING

IF= EFTOPTOUT " " DO-SOMETHING

IF= EFTOPTOUT '  ' DO-SOMETHING

IF= EFTOPTOUT "  " DO-SOMETHING

IF= EFTOPTOUT '              ' DO-SOMETHING  (actual length of EFTOPTOUT)

IF= EFTOPTOUT "             " DO-SOMETHING (actual length of EFTOPTOUT)

Can an If statement in Dialog system recognize a blank field?  I have tried to code for it, but it doesn't seem to recognize the value.

For example, I've tried these variations, and DO-SOMETHING is not done, it just goes to the next line. 

IF= EFTOPTOUT ' ' DO-SOMETHING

IF= EFTOPTOUT " " DO-SOMETHING

IF= EFTOPTOUT '  ' DO-SOMETHING

IF= EFTOPTOUT "  " DO-SOMETHING

IF= EFTOPTOUT '              ' DO-SOMETHING  (actual length of EFTOPTOUT)

IF= EFTOPTOUT "             " DO-SOMETHING (actual length of EFTOPTOUT)

The following works for me where I am testing the master field associated with the entry field and not the entry-field itself:

  IFTRUE

    IF= DATA-FIELD " " SETTRUE

    MOVE "false" MESSAGE1

    REFRESH-OBJECT EF2

  SETTRUE

    MOVE "true" MESSAGE1

    REFRESH-OBJECT EF2


Can an If statement in Dialog system recognize a blank field?  I have tried to code for it, but it doesn't seem to recognize the value.

For example, I've tried these variations, and DO-SOMETHING is not done, it just goes to the next line. 

IF= EFTOPTOUT ' ' DO-SOMETHING

IF= EFTOPTOUT " " DO-SOMETHING

IF= EFTOPTOUT '  ' DO-SOMETHING

IF= EFTOPTOUT "  " DO-SOMETHING

IF= EFTOPTOUT '              ' DO-SOMETHING  (actual length of EFTOPTOUT)

IF= EFTOPTOUT "             " DO-SOMETHING (actual length of EFTOPTOUT)

Is it possible that the data in EFTOPTOUT is less than a space character?  Try using IF<= instead.


Can an If statement in Dialog system recognize a blank field?  I have tried to code for it, but it doesn't seem to recognize the value.

For example, I've tried these variations, and DO-SOMETHING is not done, it just goes to the next line. 

IF= EFTOPTOUT ' ' DO-SOMETHING

IF= EFTOPTOUT " " DO-SOMETHING

IF= EFTOPTOUT '  ' DO-SOMETHING

IF= EFTOPTOUT "  " DO-SOMETHING

IF= EFTOPTOUT '              ' DO-SOMETHING  (actual length of EFTOPTOUT)

IF= EFTOPTOUT "             " DO-SOMETHING (actual length of EFTOPTOUT)

Hi,

is the EFTOPTOUT filled with space (hex 20) or with low-value (hex 0)?

Try this:

If eftoptout = space

  or eftoptout = low-value

  DO-SOMETHING

end-if.


Can an If statement in Dialog system recognize a blank field?  I have tried to code for it, but it doesn't seem to recognize the value.

For example, I've tried these variations, and DO-SOMETHING is not done, it just goes to the next line. 

IF= EFTOPTOUT ' ' DO-SOMETHING

IF= EFTOPTOUT " " DO-SOMETHING

IF= EFTOPTOUT '  ' DO-SOMETHING

IF= EFTOPTOUT "  " DO-SOMETHING

IF= EFTOPTOUT '              ' DO-SOMETHING  (actual length of EFTOPTOUT)

IF= EFTOPTOUT "             " DO-SOMETHING (actual length of EFTOPTOUT)

Thanks to all.  This worked. : )