Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

NAOVAZIO()

NAOVAZIO() -> lOk

Validates that the current field is populated.

NAOVAZIO()AdvPL
01 · OVERVIEW

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.)

02 · SYNTAX

Syntax

NAOVAZIO() -> lOk

Return value

Logical result for current content in the validation context.

03 · PRACTICAL EXAMPLE

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 Nil
Expected result

Opens 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.

BEST PRACTICES
  • 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.

Related content

REFERENCES
  1. TOTVS. NAOVAZIO%28%29. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha