Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

MsgYesOrNo

MsgYesOrNo(cPergunta,cTitulo) -> lResposta

Asks Yes/No in the historical eADVPL reference.

MsgYesOrNoAdvPL
01 · OVERVIEW

Overview

The guide documents question, title and logical return: Yes is true; No is false. The name includes Or. We assume neither equivalence to MsgYesNo nor current-release support. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

MsgYesOrNo(cPergunta,cTitulo) -> lResposta

Parameters

cPergunta
CharacterRequired

Displayed question.

cTitulo
CharacterRequired

Window title.

Return value

Logical: .T. for Yes, .F. for No, per the guide.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed547()
    // Block not invoked: requires a compatible historical runtime.
    Local bQuestion := {|cQuestion,cTitle| MsgYesOrNo(cQuestion,cTitle)}
    ConOut(ValType(bQuestion))
Return Nil
Expected result

Prints B; no window opens. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Confirm availability in staging before integration. User choice does not replace authorization, validation or transactions.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de Referência eADVPL (histórico). §6.2, p. 29. 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