In my app which uses a 3rd party app's tables I am having difficulty in identifying when a file in a particular folder is listed in a table i have created of the used file names.
I suspect the length of the path is the problem.
A typical path is in path field is
P:\_TEST_PROJECTS\MY_GOOD V7\FILES\24 TORONTO ROAD 3.JPG
I have the table of file names from the target folder and a table of all such files used in the 3rd Party app.
As the numbers of files are small ( < 5000) I have used LOCATE to test whether a folder file is in the 3rd party table.
But I do not get a FOUND() = .t. when I run the LOCATE command when I should.
I tried to introduce an idx with the command
Index On pathfieldname To here
but I get the message - invalid length of index when I run it in the command window.
How can I get this to work please?
Coldan
I suspect the length of the path is the problem.
A typical path is in path field is
P:\_TEST_PROJECTS\MY_GOOD V7\FILES\24 TORONTO ROAD 3.JPG
I have the table of file names from the target folder and a table of all such files used in the 3rd Party app.
As the numbers of files are small ( < 5000) I have used LOCATE to test whether a folder file is in the 3rd party table.
But I do not get a FOUND() = .t. when I run the LOCATE command when I should.
I tried to introduce an idx with the command
Index On pathfieldname To here
but I get the message - invalid length of index when I run it in the command window.
How can I get this to work please?
Coldan