[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|        SYS(2007, <expC>)        |
+---------------------------------+

-----------------------------------
Returns the checksum value of a character string.
Return value - Character
-----------------------------------

This function returns the check sum value of the character string
<expC>.  A check sum can be used to test the validity of data or to
compare two character strings.

This function is provided for those users who wish to add or modify
resource entries in a FoxPro resource file.  To generate a proper check
sum value for the resources in the current FOXUSER.DBF:

+---------------------------------+
|         Program Example         |
+---------------------------------+
SET RESOURCE OFF
USE foxuser
REPLACE ALL ckval WITH VAL(SYS(2007, SUBSTR(data,3)))
USE
SET RESOURCE ON

-----------------------------------

See Also:  SET RESOURCE, SYS()

-----------------------------------

See Also: SET RESOURCE SYS()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson