NAOVAZIO()
NAOVAZIO() -> lOkValidates that the current field is populated.
Overview
This function does not take the value as an argument: it depends on the current editing variable or field. Documentation uses it in MSGET VALID. An isolated call with a number or string therefore does not represent its contract. (Sources: refs. 1–1.)
Syntax
NAOVAZIO() -> lOkReturn value
Logical result for current content in the validation context.
Commented example
#Include "Protheus.ch"
User Function Ed555()
Local oDlg
Local cValue := Space(10)
// Validation depends on the field being edited.
DEFINE MSDIALOG oDlg TITLE "Example" FROM 0,0 TO 100,300 PIXEL
@ 12,12 MSGET cValue SIZE 100,12 OF oDlg PIXEL VALID NAOVAZIO()
ACTIVATE MSDIALOG oDlg CENTERED
Return NilOpens a dialog and evaluates content during field validation; writes no data. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Run only in a UI session. Distinguish population, sign and business rules; test empty/cancellation cases too.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.