Usina BRAdvPL Guide
Sign in
← All topics
FOUNDATIONUnder review

SX6 — Parameters

Stores system parameters affecting processing.

SX6 — ParametersAdvPL
01 · OVERVIEW

Overview

SX6 holds system parameters, distinct from SX1 MV_PARxx answers. Value, type, branch and cache refresh affect reads. SuperGetMV documents name, help, default and branch; defaults do not create missing parameters. The teaching block uses a fictional name and logical default without querying the environment. Review changes across all consumers and document rollback. (Sources: refs. 1–2.)

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed685()
    // Fictional name; a logical default does not create an SX6 record.
    Local bParameter := {|| SuperGetMV("MV_X_ED685",.F.,.F.)}
    ConOut(ValType(bParameter))
Return Nil
Expected result

Creates block B without reading or modifying the parameter. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Keep default types consistent; do not log sensitive parameters. Confirm branch and cache-refresh policy.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. Dicionário de Dados: tabelas, funções e usos. Accessed on 2026-10-28.
  2. TOTVS. SUPERGETMV. Parâmetros e cache. Accessed on 2026-10-28.
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