|
Previous Top Next |
Prototype: | (String pBuffer),Ulong |
pBuffer | String to calculate CRC value for. |
Returns | The CRC32 value for the buffer string. |
This methods takes a string buffer and calculates and returns the CRC value for it.
Example:
Loc:CRC ULong
Loc:TestString String(20)
Loc:CRCString String(20)
ITU ITUtilityClass
Code
Loc:TestString = 'Icetips Creative'
Loc:CRCString = 'Icetips Creative'
Loc:CRC = ITU.GetCRC32(Loc:TestString)
If ITU.CompareCRC32(Loc:CRCString,Loc:CRC)
Message('The strings match:)' &|
'|TestString = ' & Loc:CRC & |
'|CRCString = ' & ITU.GetCRC32(Loc:CRCString),'String match:)',ICON:Exclamation)
Else
Message('The strings do NOT match:(' &|
'|TestString = ' & Loc:CRC &|
'|CRCString = ' & ITU.GetCRC32(Loc:CRCString),'String do NOT match:(', ICON:Hand)
End
See also: