Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>getprevalidate()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GETPREVALIDATE()
 Prevalidate a Get object
------------------------------------------------------------------------------
 Syntax

     GETPREVALIDATE(<oGet>) --> lSuccess

 Arguments

     <oGet> is a reference to the current Get object.

 Returns

     GETPREVALIDATE() returns a logical value indicating whether the Get
     object has been prevalidated successfully.

 Description

     GETPREVALIDATE() is a function that validates the Get object for
     editing, including evaluating Get:preBlock (the WHEN clause) if it is
     present.  The logical return value indicates whether the GET has been
     prevalidated successfully.

     Get:exitState is also set to reflect the outcome of the prevalidation:

     Get:exitState Values
     ------------------------------------------------------------------------
     Getexit.ch   Meaning
     ------------------------------------------------------------------------
     GE_NOEXIT    Indicates prevalidation success, okay to edit
     GE_WHEN      Indicates prevalidation failure
     GE_ESCAPE    Indicates that a CLEAR GETS was issued
     ------------------------------------------------------------------------

     Note that in the default system, a Get:exitState of GE_ESCAPE cancels
     the current GET and terminates READMODAL().

 Examples

     .  This example demonstrates the GETPREVALIDATE() function.

        IF GETPREVALIDATE (oGet)
           // process the get
        ELSE
           // WHEN clause not satisfied
           // give a warning to the user
        ENDIF

 Files   Library is CLIPPER.LIB, source file is Getsys.prg.


See Also: GETAPPLYKEY() GETDOSETKEY() GETPOSTVALID()

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