Remove os espaços em branco à direita e à esquerda de uma string.
AllTrim( < cText > )
Nome | Tipo | Descrição | Obrigatório | Referência |
---|---|---|---|---|
cText | qualquer | 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 e à esquerda removidos. |
#define CRLF Chr(13) + Chr(10) //+----------------------------------------------------------------------------+ //|Exemplo de uso da função AllTrim | //+----------------------------------------------------------------------------+ User Function atrim1() Local cText := " text with spaces at the beginning and at the end " Local cAllTrim := AllTrim( cText ) Local cMensagem := "" cMensagem := "Original Text: [" + cText + "]" cMensagem += CRLF + "AllTrim: " + CRLF + "[" + cAllTrim + "]" Return MsgInfo( cMensagem, "AllTrim Example" )
Todas as versões