I am using some of the new features in the ASCAN function to specify a column, and to set the EXACT Value to TRUE. However, it is not working correctly. Maybe I misread the documentation.
I want to scan for a fieldname, limit it to the first column for efficiency & safety, and match "EXACT" value.
Thus, I don't want my search of "BO" to return a hit on "BOB"
Here is the some sample code that demonstrates the problem. It returns 0.
If I change the last parameter from 6 to 1 it returns 19, which is 2nd element, 1st item (2,1).
I am expecting 54. which is 4,1
* Also - I am aware that setting EXACT ON will resolve my problem, but according to the documentation I should not have to do that.
Jim Osieczonek
Delta Business Group, LLC
I want to scan for a fieldname, limit it to the first column for efficiency & safety, and match "EXACT" value.
Thus, I don't want my search of "BO" to return a hit on "BOB"
Here is the some sample code that demonstrates the problem. It returns 0.
If I change the last parameter from 6 to 1 it returns 19, which is 2nd element, 1st item (2,1).
I am expecting 54. which is 4,1
* Also - I am aware that setting EXACT ON will resolve my problem, but according to the documentation I should not have to do that.
Code:
SET EXACT OFF
CREATE TABLE DELETEME (NO C(10), BOB C(10), JO C(10), BO C(10))
lcFieldName = "BO"
lnFieldCount = AFIELDS(laTemp,"deleteme")
lnSeed = ASCAN(laTemp,[&lcFieldname],1,-1,6)
MESSAGEBOX(ALLTRIM(STR(lnSeed)))
USE
DELETE FILE DELETEME.dbg
Jim Osieczonek
Delta Business Group, LLC