Remove os espaços em branco à direita de uma string.
RTrim( < cText > )
Nome | Tipo | Descrição | Obrigatório | Referência |
---|---|---|---|---|
cText | caractere | Indica o texto cujos espaços em branco serão removidos. | X |
Nome | Tipo | Descrição |
---|---|---|
cRet | caractere | Retorna uma string com espaços em branco à direita removidos. |
#include "TOTVS.ch" //+----------------------------------------------------------------------------+ //|Exemplo de uso da função RTrim | //+----------------------------------------------------------------------------+ User Function rtrim1() Local cText := " text with spaces at the beginning and at the end " Local cRTrim := RTrim( cText ) Local cMsg := "" cMsg := "Original Text: [" + cText + "]" cMsg += CRLF + "RTrim: " + "[" + cRTrim + "]" Return MsgInfo( cMsg, "RTrim Example" )
Todas as versões