Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

SixDescricao

SixDescricao() -> cDescricao

Reads the historical positioned SIX index description.

SixDescricaoAdvPL
01 · OVERVIEW

Overview

SixDescricao does not receive alias/order arguments. The manual requires the correct SIX record already positioned and uses the current language. Its return depends on context and position rather than a universal fixed index. The block neither seeks nor changes areas. Real use must verify dictionary access, successful seeking and preservation of area/order/record. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

SixDescricao() -> cDescricao

Return value

Character: description for current position/language.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed665()
    // Do not invoke without a correctly positioned SIX record.
    Local bDescription := {|| SixDescricao()}
    ConOut(ValType(bDescription))
Return Nil
Expected result

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

BEST PRACTICES
  • Historical reference: do not assume all current architectures expose SIX identically.
  • 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. 380. Contrato atual não homologado. 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