Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Network:
Windows 2000 Server
I have found that when using the ALINES() function to move the contents to an array, the type of search required may not be suitable for ASCAN(). The search may require that the text searched for be located anywhere in the text string, hence, ATC("TextToSearchFor",lcLines[lnNdx])>0 provides a better search (with a FOR loop to process the entire text buffer). ASCAN would require that the "TextToSearchFor" be located at the beginning of the text string to match (and is case sensitive).
An example:
DIMENSION lcArray[2]
lcArray[1]="This is a test"
lcArray[2]="Looking for text"
?ASCAN(lcArray,"text") && returns 0
?ASCAN(lcArray,"look") && returns 0
?ASCAN(lcArray,"Look") && returns 2
?ATC("text",lcArray[2]) && returns 13
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement