MPDicInDB
MPDicInDB() -> lRetChecks whether the data dictionary is in the database.
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.)
Syntax
MPDicInDB() -> lRetReturn value
Logical: true for a database-hosted dictionary.
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 NilPrints 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.
- 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.

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