Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

X3TreatUso

X3TreatUso(xContent) -> xTreated

Converts X3_USADO representation for analysis.

X3TreatUsoAdvPL
01 · OVERVIEW

Overview

The P12 reference describes binary/string conversion. String input may yield binary or remain string depending on the situation. This is neither a Boolean required/usage check nor an SX3-writing API. The block accepts field content without inventing bit positions or a universal width. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

X3TreatUso(xContent) -> xTreated

Parameters

xContent
VariantRequired

Content of X3_USADO.

Return value

Treated content; type depends on input/situation.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed726()
    // Supply actual field content; block not invoked.
    Local bConvert := {|xContent| X3TreatUso(xContent)}
    ConOut(ValType(bConvert))
Return Nil
Expected result

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

BEST PRACTICES
  • Check the result type before analysis. Do not edit bitmaps by concatenating letters/positions copied from another release.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. X3TreatUso. P12; conversão de representação. 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