Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

PswOrder

PswOrder(nOrdem) -> Nil

Selects the legacy password index order

PswOrderAdvPL
01 · OVERVIEW

Overview

The manual lists historical orders 1 ID, 2 user, 3 password and 4 email. Order changes how PswSeek interprets its key. The example only creates a block for ID order; it does not run it. The historical list neither authorizes password searches/disclosure nor guarantees current storage organization. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

PswOrder(nOrdem) -> Nil

Parameters

nOrdem
NumericRequired

Historical search order.

Return value

Nil in the manual; not a success flag.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed604()
    // Uninvoked block: requires authorized context and credentials.
    Local bRead := {|| PswOrder(1)}
    ConOut(ValType(bRead))
Return Nil
Expected result

Creates a block (type B), without querying, authenticating or changing users. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Historical reference: verify API, permissions and context for the target release. Never log credentials or user arrays.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. AdvPL — O Manual. Referência histórica, p. 366. Contrato atual não homologado. 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