Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

DB_CHECK( cTable[, xcUdf ] )

Purpose

Validate GET input by restricting it to items in a table.

Arguments

     cTable -- table in which to search for the current READVAR().

     xcUdf -- if passed, code block or udf to execute if input is valid

Setup

GET in progress; _table is open and indexed on the key to search

Example

     LOCAL mAccount_No := SPACE( 5 )
     USE CUSTOMER
     @ 5, 5 GET mAccount_No ;
            VALID DB_CHECK( "CUSTOMER" )
     READ_IT()

Returns

If input is valid, the result of xcUdf (or .T. if xcUdf wasn't
defined) is returned, else .F.

Side Effects

None.

Artful Calls

MACRO, NOFINDMESG

Source File

AA_DBCHK.PRG

See Also: EXIST() AEXIST() HELP_FILL() MENU_REC()

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