Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

MPDicInDB

MPDicInDB() -> lRet

Checks whether the data dictionary is in the database.

MPDicInDBAdvPL
01 · OVERVIEW

Overview

TOTVS documents a parameterless P12 function. It returns true when dictionaries reside in the database. The check neither migrates the dictionary nor changes its configuration. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

MPDicInDB() -> lRet

Return value

Logical: true for a database-hosted dictionary.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed531()
    // Block not invoked; evaluate only in a prepared Protheus environment.
    Local bCheck := {|| ValType(MPDicInDB())}
    ConOut(ValType(bCheck))
Return Nil
Expected result

Prints B. When evaluating in staging, inspect the actual type. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Do not change dictionaries or profiles based solely on the indicator. Record release and compare results against environment configuration.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. MPDicInDB. 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