how can i restore a form that failed to load?  
Author Message
Madix_t





PostPosted: Visual FoxPro General, how can i restore a form that failed to load? Top

it happens when i compile my project.

"Error Loading file-record number 3. cursoradapter < or one of its members>. Methods: c:\myprogram\forms\solditem.SCT is not an object file"

is there anyway we can restore it since if we copy from the original, and or make another d'same form from scratch it's a long process.

Thank you




Visual FoxPro1  
 
 
CetinBasoz





PostPosted: Visual FoxPro General, how can i restore a form that failed to load? Top

You might try to compile the form solditem.

You might also try to browse record number 3 and fix offending code.

These rarely help.


 
 
Madix_t





PostPosted: Visual FoxPro General, how can i restore a form that failed to load? Top

i locate that record # 3 at MS SQL Server table but it has no problem in there. i can't also modify it anymore because of that error.

thank you for your help.



 
 
Dave M.





PostPosted: Visual FoxPro General, how can i restore a form that failed to load? Top

I think he means record # 3 of the project file.

USE c:\fox\proj1.pjx
BROWSE

Dave M.


 
 
CetinBasoz





PostPosted: Visual FoxPro General, how can i restore a form that failed to load? Top

I meant record #3 in your scx file. You should do something like this:

-Take backup of .scx and .sct

-Try a compiling and check if that works (that might be the only thing needed at times)

compile form solditem.scx

-If it doesn't work:

use solditem.scx
browse && check record#3
use

It's hard to say what you're looking for but you might find some offending code in properties/methods.


 
 
Madix_t





PostPosted: Visual FoxPro General, how can i restore a form that failed to load? Top

Thank you Ceten & Dave, i got it working now...

Have a nice day to all experts...God bless