Link to home
Create AccountLog in
FoxPro

FoxPro

--

Questions

--

Followers

Top Experts

Avatar of luciliacoelho
luciliacoelho🇵🇹

how can i repair this form?
I have a VFP form that has the sct file corrupt. how can i solv this problem?
thanks

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of jrbbldrjrbbldr

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Pavel CelbaPavel Celba🇨🇿

If the error says "Memo file is missing or invalid" then it may be caused by insufficient access rights. You have to create your forms in a folder where you have full access rights. If you create forms under the C:\Program Files\... then Windows (7 or Vista) UAC does not allow appropriate access and above error appears.

In this particulat case the SCT file can be stored in a different folder than SCX resides in. (Windows can move writable files into so called Virtual storage from Program files). Try to search your C: drive and copy both files into one folder with sufficient rights.

Avatar of Olaf DoschkeOlaf Doschke🇩🇪

scx/sct is a table like dbf/fpt, so the same rules apply. Also the rule "You can't always repair it."

The question is how many work is really lost and needs to be redone from scratch or from a backup of an older state of the form.

I'd never feel good about working with a repaired form, so even if you fix it with a table repair tool after renaming scx->dbf and sct->fpt, I'd copy the controls and code over into a new form.

Several really simple things to check first: Is the sct file still present? What is the file size? If size is 0 for example you already know there is nothing left over to repair.

Pavel is right the sct file could be in your user profile in a VirtualStore folder, depends on where you store your forms, but even by default that would be in your docs folder in \Vsual Foxpro Projects\, where this does not apply. Even if, both scx and sct would be saved rerouted into VirtualStore. You would always find your sct where your scx is, too.

Bye. Olaf.

Avatar of luciliacoelholuciliacoelho🇵🇹

ASKER

It was the hardest way to solve,but it seems to be no aletrnative way.
Kind regards

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

FoxPro

FoxPro

--

Questions

--

Followers

Top Experts

Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.