SX6 — Parameters
Stores system parameters affecting processing.
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.)
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 NilCreates 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.
- 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.

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