Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK on an index that is made with UDF()
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SEEK on an index that is made with UDF()
Miscellaneous
Thread ID:
00256712
Message ID:
00256712
Views:
51
I store a Customer Id in my table. I then created an index on that table that sorts the records by Customer Last Name. I use a UDF() in the database's Stored Procedures to retrieve the Last Name from the Customer table using the Customer Id stored in the table. The UDF() gets the Customer's Last Name by doing a SELECT SQL....

Now I want to set the order of the table to Customer Last Name and perform a SEEK to find a specific record. e.g. SET ORDER TO Customer, SEEK('GUCWA') (The index is UPPER()). The SEEK does not consistently find the correct record. More often than not, it does not find any records at all. SET EXACT is 'OFF' and SET NEAR is 'ON.

Is it possible to do what I am trying to do? Is there another method that will accomplish the same result? I am using VFP 5.0. I am using tables, not views, and it is too late to change to local views.

Thanks,
Annemarie
Next
Reply
Map
View

Click here to load this message in the networking platform