Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File is in use error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00019868
Message ID:
00019933
Views:
41
Jeff, Check where you have put the Set Index statement, and be sure your syntax is correct for the type of index - for instance, if you have a CDX index, you'd use SET ORDER TAG xxx

You can try moving the Set Index To xxxx up into the if clause, right after the USE pd_payments command.

Barbara

>I added the "SET INDEX" statement. It runs fine the first time. Now the second time through I'm getting the "File is in use error" again, this time it is occurring on the "SET INDEX" statement.
>
>>After your 'Use pd_payments' statement, be sure you add the index statements
>>
>>if !used('pd_payments')
>> use pd_payments
>>endif
>>select pd_payments
>>SET INDEX TO PD_PAYMENTS
>>SET ORDER TO 1
>>
>>Of course, you'll change the name of the index to the correct one.
>>HTH
>>Barbara
>>
>>>Thanks for the reply! I replace my USE statement with the code you indicated, but now I'm getting another error: "Table has no index order set" when the SET ORDER TO 1 command is run.
>>>
>>>>your select statement is using that table again.
>>>>try
>>>>

>>>>if !used('pd_payments')
>>>> use pd_payments
>>>>endif
>>>>select pd_payments
>>>>...
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform