Source Code to Lookup Routines

The KEY.LOOKUP( ) and KEY.SCROLL( ) routines are both mvBASIC subroutines making use of the BTREE interface functions. Source code to these two subroutines is supplied with the system.

You are welcome to make modifications to these routines for your applications, provided that the routines are only distributed to systems running the host’s software. Note that the KEY-FIND TCL command actually uses the KEY.LOOKUP( ) and KEY.SCROLL( ) subroutines. Therefore, any modifications to these subroutines should be given different subroutine names.

See Also

Using the BTREE File Structure System

BTREE File Structure

Interfacing with Applications

Defining Key Structures

Using Lookup and Browse Routines

Maintaining Key File Performance

Optimizing Keys

Sizing Key Files

Stack Code Calculator Function

Estimating a Key's Location and File Size

Rebuilding Keys

Key Storage Requirements