Embaralha/Desembaralha uma string.
Sintaxe
Embaralha( < cTexto >, < nTipo > )
Parâmetros
Nome | Tipo | Descrição | Obrigatório | Referência |
|---|---|---|---|---|
cTexto | caractere | Indica o texto que será embaralhado. | X |
|
nTipo | numérico | Quando 0 embaralha String. Quando 1 desembaralha string. | X |
|
Retorno
Nome | Tipo | Descrição |
|---|---|---|
cRet | caractere | Retorna string embaralhada/desembaralhada. |
Exemplos
User Function Exemplo()
sEmbaralhada := Embaralha('TOTVS APPSERVER', 0)
conout(sEmbaralhada) // Result: "PRTSPVO SETAERV"
conout(Embaralha(sEmbaralhada,1)) // Result: 'TOTVS APPSERVER'
Return
Import HTML Content
Visão Geral
Conteúdo das Ferramentas