Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VCX Corruption

Status
Not open for further replies.

ricaruso

Programmer
Apr 26, 2004
5
US
I've been working with a project and have a Form in a class. I always use Thor and Project Explorer for development. For some strange reason, when I saved the form and reopened it, the BaseClass was changed from FORM to a FORMSET with a blank Form. I opened it up using the VFP Default Project Manager, but it was the same blank Formset. I opened the raw VCX table and I can see that the records for the FORM are still in the table. I don’t know how to hack the VCX to set it back to a FORM and if necessary remove the Empty FORMSET to restore my Form.

Any help would be great.

-Ric
 
I suggest a way of finding out how a normal form class based on the native form differed from a formset class would iply be creating a new separate vcx and adding to such classes.

IIRC the field names within the VCX are confusing/misleading about what they mean vs how they are named. I'd need to do the same to figure out, I'm currently not at a VFP development machine, though.

Chriss
 
Also note, there's a tool to set a baseclass in the Class Browser.

Start Class Browser, open a VCX, select the class you want to redefine the base class, right click on it and pick "Redefine". That should do it when it shows the form as a formset and you redefine it as form or as a form based class to inherit from some other form class.

Chriss
 
If you will send me the VCX as a zip file, I will see if I can reset the form class for you.

Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top