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

FLDINKEY( cKey, nStart )

Purpose

Find a field name in a string or part of a string.

Arguments

     xcKey -- the string to search

     nStart -- position in the string at which to start searching

Setup

cKey must be a string, nStart must be initialised. By placing the
call to FLDINKEY() inside a loop as shown in the example, and passing
nStart by reference, you may obtain all field names from cKey.

Example

     LOCAL i, _fields, _pieces, ;
           _offset := 1, ;
           _key := "UPPER(LAST_NAME+FIRST_NAME)", ;

     _pieces = ABREAK( '+', _key )
     _fields := ARRAY( _pieces )

     FOR i = 1 TO _pieces
         fields[ i ] = FLDINKEY( _key, @_offset )
     NEXT

     AEVAL( fields, { |x| QOUT( x ) } )

Returns

The next field name in cKey starting at position nStart if found,
otherwise a null string.

Artful Calls

None.

Source File

AA_FLDKY.PRG

See Also: MASK_FOR()

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