Calcula um CRC - Calcula um CRC - Cyclic Redundancy Code (Código de Redundância Cíclica) de uma string e retorna uma string com o resultado. SintaxeMsCRC32Str( < cString > )
|
ParâmetrosNome | Tipo | Descrição | Obrigatório | Referência |
---|
cString | caractere | Indica a string da qual será calculado um CRC32. | X | |
RetornoNome | Tipo | Descrição |
---|
cRet | caractere | Retorna uma string com o CRC da string informada no parâmetro cString. |
Observações- Strings iguais retornam CRCs iguais. Porém, nem sempre strings diferentes retornam CRCs diferentes.
ExemplosUser Function teste()
// Lê o arquivo lista.txt, no ambiente do servidor, e calcula o CRC32 do mesmo.
cString := memoread('\lista.txt')
cCRC32 := MSCRC32STR(cString)
MsgStop('CRC = ['+cCRC32+']')
Return
|
AbrangênciaAdvanced Protheus 6.09 , Advanced Protheus 7.10 , Microsiga Protheus 8.11 , Protheus 10 , TOTVS Application Server 10 , ByYou Application Server Veja também |