www.icetips.com  Icetips Utilities Documentation 5/15/2014    

Utility Class: GetCRC32

Previous  Top  Next  


Prototype: (String pBuffer),Ulong

 

pBufferString to calculate CRC value for.

 

ReturnsThe 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:

CompareCRC32

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getcrc32_utility.htm