Query Functions
Description
Functions for performing queries against DBF tables.
- Name
- Description
- A5_COMBINE_FILTERS Function
Takes two filters, either of which is sub-selected, and combines into a single filter expression
- A5_GET_RECORDS_IN_QUERY Function
Returns the number of records in a query for a table or a set. To pass in arguments, set OpDefn.arguments = argument object
- A5_HAS_BASE_FILTER Function
Returns .t. if the current Form/Browse has a base Filter define.
- A5_REPLACE_PARAMETERS_MULTI Function
Used to substitute parameters in an expression, such as a filter.
- a5_save_query Function
Prompts for the name of a query
- a5_show_mru_query Function
Show the most recent query for table or set
- a5_toggle_qbf_genie Function
Toggles the QBF Genie on/off
- a5cs_analyzesimplequery Function
Analyze a SELECT statement. If statement is a simple list of columns from a single table returns .t.. Else .f.
- a5cs_determineoptimalquerylocation Function
Determine optimal location for running a query on an active-link table. Returns 'client-side' or 'server-side'.
- a5cs_getquerylocation Function
Determines where a query for an active-link table should be run.
- CONVERT_EXPRESSION Function
Converts elements of an expression based on flags 'V'-expand vars 'C'-expand calcs, 'L' force longnames , 'S' force shortnames.
- CROSSLEVEL Function
Returns the record numbers of the parent level tables for records found when querying a set with one-many links.
- EXPRESSION_COMMON_FILTER_ELIMINATE Function
Simplify the filter expression if possible.
- EXPRESSION_COMMON_ORDER_ELIMINATE Function
Simplify the order expression if possible.
- EXPRESSION_INFO Function
Takes an expression and gets information about it. type - expression type ref_tabl - 'T' if references any table eref_children - 'T' if references children ref_one_to_manys - 'T' if references one-to-many children table_names - tables referenced field_names - field referencedleaves - leaf expression (conditional)
- EXPRESSION_SUBEXPRESSION_ELIMINATE Function
Remove any occurence of the subexpression from an expression - removes any intervening operators as well.
- FLATTENQUERY Function
Function passes data through, it is included to modify the behavior of query of child fields.
- MRU_QUERY Function
Returns the current or most recently used query for the specified table/set
- QUERY_FILTER_GET Function
Extracts the filter expression from a saved query.
- query_load Function
Load settings from a saved query.
- QUERY_ORDER_GET Function
Extracts the order expression from a saved query.
- query_save Function
Save settings into a saved query.
- REPLACE_PARAMETERS Function
Replaces the parameters in an expression. Set 'vars' to local_variables()
- TYPEOF Function
Returns the data type of the value.
- UNIQUE_KEY_VALUE Function
When used in a filter expression, return only unique values for key.