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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anybody can explain why VFP 9 show this message ?

Status
Not open for further replies.

capri1966

Programmer
May 13, 2010
57
ES
Hi, i've some projects developed an running with VFP 6.0 and it's work fine. Then I load the same project with VFP 9 and
it's load ok, but with the classes i've an problem. VFP 9 only shows 3 or 4 clases from .vcx file and when i try to load
some of this clases, appears 'Memo file c:xxxxx\xxxxx.VCT is missing or is invalid'. Could anybody explain why VFP don't
load all classes and why it's show this message ?.

 
sounds like corruption.

a vcx file is really like a table

Ez Logic
Michigan
 
VCX and VCT files are not "like" a table. They ARE a table. They are DBF and FPT files, respectively, with funny extensions.

It sounds like you've perhaps copied a VCX without the corresponding VCT, or otherwise have corrupted the VCT (the memo file).
 
I agree. The most likely scenario is that you moved the VCX to a new location, but did not move the corresponding VCT. The solution is simply to go back to the old location and pick up the VCT from there (it will have the same main name as the VCX).

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
No, the same project when i open with VFP 6.00 it's load every vcx file ok, but when i try to do this with VFP 9.00 occurs this error. The same project,
it's like if was'nt compatible between versions
 
This is the project opened with VFP 6.00
VFP6_f0dsf9.png


And This is the same project opened with VFP 9.00
VFP9_dheeuo.png


In this case, the classes has less vcx files as show in the image and less components and when
i try for example to open search1, occurs this
 
It's a long shot, but maybe you have in the original project some special (Spanish) characters ?
Perhaps some properties ?

Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
 
Skipping 3 versions is a large step. VFP7 introduced themes and some new properties of classes, this already caused some hiccup, once you opened and worked on a project in VFP7 and then tried to reopen in VFP6. VFP9 introduced anchors and the same problem applied to VFP7 projects opened in VFP9.

So you better make copies before you open and work on them in the first place.
You might already have a problem, even if you did nothing but look at the vcxes.

Do you have backups? I hope so.

In regard to your problem, this is the first time I've seen classes vanish from a VCX, but I never opened a VFP6 project in VFP9. Your best bet might be splitting the VCX in VFP6. Create some new empty vcx in VFP6 and you can drag classes from a large vcx into the empty one, that'll make a perfect class copy. Then test if that single class is seen by VFP9. In VFP9 you can put classes back together again. You might not need to go down to single classes per VCX, but you may see some class being problematic.

VFP overall has become more strict and VFP6 was rather sloppy in comparison, still with SP5.

Bye, Olaf.




 
I never opened a VFP6 project in VFP9.

I've done that quite a lot. (Daily, in fact. I use VFP9 Code References to search VFP6 projects all the time.)

No problem at all.

I'm wondering if maybe it's as simple as cleaning up the project from VFP6, or perhaps building the project (NOT the EXE) from VFP9?

It's not a VFP version issue. There's something else afoot here.
 
I wonder if this is a manifestation of the "record count in the table is wrong" problem. To see if that's the issue, trying issuing:

SET TABLEVALIDATE 0

before opening the project in VFP 9 and see if the problem goes away.

Tamar
 
Dan,

you sure know what you're doing, and experience confirms this to work.
But let me see, if I can reproduce the problems I had with Anchor in VFP7 vs VFP9 projects. I still have those versions around at work and I onle use Code References on a copy of the VFP7 projects.

Bye,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top