Xbasic

Index Functions

Description

Functions for working with indexes in a DBF database.

Name
Description
*IBOF Function

Returns TRUE if the record pointer is at the beginning of the file with respect to the current index.

*index Function

Counter used inside a for each 'each' subexpression that returns source index.

*validkeyval Function

Forces text to be a valid length to index (even if it is bigger).

A5_CHECKINDEXESDIALOG Function

Displays the Check Indexes dialog box.

A5_EDIT_INDEXES Function

Launches the Index Builder

a5_get_index_name Function

Displays a drop-down pick list of index names. For internal use.

a5_index_selector Function

 

CREATE_INDEXES Function

Creates indexes for a table based on a CRLF definition string. Definition string is of format: tagname|OrderExpn|FilterExpn|Flags. Tip: The format string can be created using Get_Index_Definitions().

CROSSLEVEL_RECORD_LIST Function

Sets the current filter for the current table and retrieves a set of records.

EXIST Function

Returns TRUE if the specified file exists.

GET_INDEX_DEFINITIONS Function

Gets the definitions of all index tags in a table's index file. Format is: tagname|OrderExpn|FilterExpn|Flags. Returns a CRLF delimited string. Use create_indexes() to rebuild indexes using this definition string.

INDEXES_MATCH_DEFSTRING Function

Checks if a table's indexes match a Definition string (a crlf string of form Tagname|OrderExpn|FilterExpn|Flags). The definition string is typically created using Get_Index_Definitions(). Returns a pointer with these properties: Error (.t. or .f.), AdditionalIndexTags (tags in the table not in the index def), MissingIndexTags (tags in the index def, but not in the table).

INVERT Function

Used in index expressions to create an order from highest to lowest.

KEY_EXIST Function

Returns TRUE if a specified key value is found in a specified index.

KEY_UNIQUE Function

Determines if the keyvalue for the specified tag is unique.

KEYLIST_BUILD Function

Build a list of keys.

Predefined Display Formats

Alpha Anywhere uses display formats to present data in form fields.

raw_key_value Function

For index keys, don't do any translation of characters.