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!

¿ What i'm doing bad ?

Status
Not open for further replies.

capri1966

Programmer
May 13, 2010
57
ES
Hello, i've software developed with VFP 6.0 and i try to open the project with VFP 9.0 but when try to open, some clases like grids, forms, and formsets not appears in the project, simply is ignored.
What it is the problem ?.
 
A project is also a DBF, but with another extension, PJX. Maybe it's corrupted. Try to "Clean up Project" in VFP6.
 
The project y VFP 6.0 it's run fine, and i do 'Clean Up Project' with the same result.

In the next image appears a project open with VFP 6.00

p1_k16dfw.jpg


In this other image it's show the same project but open with VFP 9.00

p2_ksofl6.jpg


Of course i've used 'Clean up project' before. It's really weird.
 
I haven't worked with VFP6 for more than 20 years, so I don't remember all the details. I suggest that you simply recreate the project from scratch in VFP9.
 
Mike, if you study the pictures, you will see that the same class is specified, but the VFP6 version shows many more objects within the class. Another possibility is that there are two different classes with the same name.
 
Ah, so it is classes that are missing from the class library - not files from the project. In that case, the solution might be to open the class library in the class browser (in VFP 9), and hit "Clean up class" (assuming all the classes are visible in the class browser).

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
You could indeed PACK the VCX, "clean up project/database/.../etc." is nothing else but PACKING the table a pjx, dbc, vcx etc. really is.

It's still weird an unpacked library should only have more classes if there are records marked for deletion it still sees.

It's been a while for me, too, I only remember problems the other way around when a project once was worked on in VFP several classes get new properties like Anchor added and you then can't work on that in VFP6.

Don't work on the same files with both VFP versions, that's surely deadly for the health of the file structures. Once you make the transition that is a one way move.

Copy the original VFP6 project and only open that copy in VFP9, build an exe with the recompile all files option checked. You might get a few errors VFP6 swept under the rug, I had such cses VFP6 assumed a semicolon at places there wasn't but VFP9 was more strict.

Anyway, at least after that step all the VCXes will have been rewritten with object code in the corresponding memo fields.

Bye, Olaf.


Olaf Doschke Software Engineering
 
Have you tried removing the whole of the class library from the project (in 6), and then adding it back in again (in 9)?

And if that doesn't work, try moving the missing classes to a temporary class library, then delete them from the main library (do that in 6). Then, in 9, add the temp library to the project and move the classes from there to the main library.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top