Home

Communication Horizons
established 1986

Home
Contact

 

Knowledgebase Index
About Us
Contact
Legacy Products


Communication Horizons
65 High Ridge Rd. #428
Stamford CT 06905

info@netlib.com

800-480-1604
203-321-1278
fax  286-1056

       

Knowledgebase


>>ITEM: R00115

>>DATE: 09/18/96

>>TYPE: Information

>>TITLE: Functions that can be used with RaSQL/B INDEX ON expression

>>PRODUCT(S): RaSQL/B 6.1x for Clipper

>>PLATFORM(S):

>>SUMMARY:
The following list of functions are those which can be used in a RaSQL/B "INDEX ON" expression.

>>MORE INFORMATION:
RaSQL/B "INDEX ON" expressions can contain only those built-in Clipper functions that are specifically for the concatenation of fields of different data types. These include:

DTOS() for DATE fields
STR() for NUMERIC fields
IFF() for LOGICAL fields

 

The following fields are also acceptable:

 

DESCEND() for descending indexes
UPPER() for uppercase (case insensitive) indexes

 

User-defined functions (UDFs) and other Clipper functions are ignored or will generate an error.

 

This applies only to files opened with the RDD (i.e., USE or DBUSEAREA). It does not apply to files opened with N_XUSE.

 

>>RESOLUTION/FIX:

 

>>EXAMPLE(S):
The following examples are acceptable:

 

INDEX ON NAME+DTOS(DATE)
INDEX ON DESCEND(STR(NUMBER))+DTOS(DATE)+UPPER(NAME)
INDEX ON UPPER(DESCEND(NAME))

 

The following examples are unacceptable.They will be ignored (i.e., the base field name will be used instead) or they will generate an error:

 

INDEX ON MYUDF(NAME)+DTOS(DATE) // contains a UDF
INDEX ON STRTRAN(NAME," ","") // not for concatenation

>>SEE ALSO:

>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide. No distribution without specific consent of publisher.


Knowledgebase Top Home

 

© Copyright 2001 Communication Horizons LLC.
“NetLib” and “Encryptionizer” are Registered Trademarks of Communication Horizons.
US and international patents pending.
Updated 29 Dec 2001