Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop Column - complicated problem
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Drop Column - complicated problem
Miscellaneous
Thread ID:
00447719
Message ID:
00447719
Views:
51
Hi everybody,

I'm changing structure of the table programmatically and I want to drop some columns (delete fields). The problem here, that I need to be sure, this field in not uses in any Index Expression (and Index Filter expression), otherwise I have an error. Therefore, I have to check, if field (call it FieldA) is used in Index Expression or Index Filter Expression and if it is, delete this tag as well.

The problem I see with this approach is: (in theory), suppose, I have fields called FieldA and FieldAB. I want to delete FieldA and leave FieldAB. If I would check Index Epr and Index Filter Expr for 'FieldA' $ IndexEpr, I'll find both cases (TagA & TagAB and delete both). This is the problem, associated with this idea. Therefore, when I re-create indexes, I will have to re-create one additional index (deleted by this code) and this would take time.

Do you have some suggestions regarding this problem? May be there is a better way?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform