Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Errors with Index tags
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Errors with Index tags
Miscellaneous
Thread ID:
00723415
Message ID:
00723415
Views:
53
Hi,

My program is toremening users with errors like:

Index tag is not found

Structural .cdx file is missing

Variable 'MYTAG' is not found

This application makes a copy of the tables from a central location to the users folder, when he logs on. Each user is working on his own copy of the tables.

This is how the files are copied:

<<

Copy file (centralfiles) to (localfiles)
For I = 1 to NoOfTables
Use TheTable
Copy structure to (localfile) with cdx
endfor

* to ensure that the index is correct
For I = 1 to NoOfTables
select LocalTable
Reindex
endfor

>>

I would like to trap these errors in a error handler and work around it.

Please verify this:

"Variable 'MYTAG' is not found" - Does this always refer to index tags? This happens when the .cdx file is missing
"Index tag is not found" - indicates that there is an index file, but not the specified tag
What is the difference between Structural .cdx file is missing & Variable 'MYTAG' is not found

In all thses cases, shall I just recreate all the index tage for the table in question?

Thank you

Ria
Next
Reply
Map
View

Click here to load this message in the networking platform