Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Views names
Message
 
To
17/02/2000 04:14:57
Steve Buttress
Steve Buttress Software Consulting
Bloomington, California, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00333309
Message ID:
00333357
Views:
20
>I have run into a problem witht he way VFP names Views and View CDXs. To recreate my observation create a simple view on any table. Then look at its name with DBF(). the result will be a temproray, generated file name like "G4DW000R.TMP" Now index the view on any field and check the index file name with CDX(1). The result should be "G4DW000R.CDX", and should have the same path as the view file name, which should be the path to your temp directory.
>
>Now, Requery() the view, and check the names as above. You will find the view file name has changed, but the CDX file name has not. OOPS, now we have a NON-STRUCTRUAL CDX! Now add a tag to the view, and check the name again. The condition now is even worse, as you will have a structural and a non-structural CDX. Repeat the steps a couple of times, and you start get a real mess.
>
>In an APP, the user is working away, and the APP calls BEGIN TRANSACTION prior to updating. ERROR 1548. Too many non-strucural indexes open.
>
>has this been noticed by MSFT before? Is there a fix or workaround?
>
>Thanks for any help.

I usually have a function/method for such cases, which requeries my view and reindexes it to compact IDX file.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform