Determining whether a field is empty can be complicated because you can have protected characters in the field picture. These protected characters appear in the field on the screen; if you call fld_get() to get the contents of the field, and the field option PICSKIP is OFF, they will also appear in the data.
To determine whether the user has entered a value in the field, call the function fld_isblank():
|
||
|
|
|
|
|
|
fld_isblank() returns TRUE if the field is empty except for protected characters, and FALSE if the user has entered data in the field.