Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>set exact</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET EXACT


Syntax:     SET EXACT on/OFF/(<expL>)

Purpose:    To determine how two character strings are compared.

Usage:      When EXACT is OFF two character strings are compared
            according to the following rules; assume two character
            strings A and B where the expression to test is (A = B):

            . If B is null, return true (.T.).

            . If LEN(B) is greater than LEN(A), return false (.F.).

            . Compare all characters in B with A.  If all characters in
              B equal A, return true (.T.); otherwise return false
              (.F.).

            With EXACT ON, two strings must match exactly, except for
            trailing blanks.

            Note that SEEK always behaves as if EXACT is OFF.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   SET EXACT OFF
   ? "123"  = "12345"         && Result: .F.
   ? "12345" = "123"          && Result: .T.
   ? "123"  = ""              && Result: .T.
   ? ""  = "123"              && Result: .F.

   SET EXACT ON
   ? "123"  = "123  "         && Result: .T.
   ? " 123" = "123"           && Result: .F.


See Also: FIND LOCATE SEEK

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson