nRow, nColRow and column where the text is placed. With PIXEL, coordinates start at the upper-left corner of the parent.
AdvPL Guide@ <nRow>, <nCol> SAY [<oSay> PROMPT | VAR] <cText> [PICTURE <cPict>] [OF <oWnd>] [FONT <oFont>] [COLORS <nClrText>, <nClrBack>] [SIZE <nWidth>, <nHeight>] [HTML] [PIXEL]Creates a TSay component for displaying text, labels and formatted values in the interface.
The @ ... SAY command displays a character expression in a dialog, panel, folder or other visual component. During compilation it is translated into the TSay class New() constructor. Text may use a PICTURE mask, custom font and colors and, when HTML is supplied, supported markup may be interpreted instead of displayed literally.
@ <nRow>, <nCol> SAY [<oSay> PROMPT | VAR] <cText> [PICTURE <cPict>] [OF <oWnd>] [FONT <oFont>] [COLORS <nClrText>, <nClrBack>] [SIZE <nWidth>, <nHeight>] [HTML] [PIXEL]nRow, nColRow and column where the text is placed. With PIXEL, coordinates start at the upper-left corner of the parent.
oSay PROMPT / VARVariable receiving the TSay object. When supplied, PROMPT or VAR must precede the displayed expression.
cTextConstant or variable character expression whose content is displayed.
PICTURE cPictMask used to format the displayed content.
OF oWndDialog, panel, folder or other container that owns the component. OF is recommended.
FONT oFontTFont object used to display the text.
COLOR / COLORS nClrText, nClrBackText color and, optionally, background color.
SIZE nWidth, nHeightWidth and height reserved for the text.
HTMLCauses supported HTML markup to be interpreted instead of shown literally.
PIXEL / PIXELSIndicates pixel coordinates; prefer PIXEL for consistency.
#Include "TOTVS.ch"
User Function ExSayValue()
Local oDlg
Local oSayTotal
Local nTotal := 1520.75
Define Dialog oDlg Title "Order summary" ;
From 100, 100 To 240, 520 Pixel
@ 20, 20 Say "Total:" Size 45, 12 Of oDlg Pixel
@ 20, 70 Say oSayTotal Prompt nTotal ;
Picture "@E 999,999.99" Size 100, 12 ;
Colors CLR_BLUE, CLR_WHITE Of oDlg Pixel
Activate Dialog oDlg Centered
ReturnThe first SAY is a label; the second retains its object and displays a masked value with custom colors.
#Include "TOTVS.ch"
User Function ExSayPanel()
Local oDlg
Local oPanel
Local oFonte
Define Dialog oDlg Title "Situação" ;
From 0, 0 To 200, 460 Pixel
oFonte := TFont():New("Arial",, -16, .T.)
@ 10, 15 MsPanel oPanel Prompt "Processamento" ;
Size 190, 55 Of oDlg Raised
@ 18, 15 Say "Processamento concluído" ;
Size 150, 14 Font oFonte ;
Colors CLR_GREEN, CLR_WHITE Of oPanel Pixel
Activate Dialog oDlg Centered
ReturnOF oPanel makes SAY a child of the panel and its coordinates become relative to it.
© 2026 Usina.BR. Todos os direitos reservados. TOTVS, Protheus, Microsiga e seus respectivos logotipos são marcas de titularidade da TOTVS S.A. AdvPL é uma linguagem de programação desenvolvida pela TOTVS. O AdvPL Guia é um projeto independente, sem vínculo, representação, patrocínio ou afiliação com a TOTVS S.A., suas franquias ou representantes.