General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only