Home > Software engineering >  Not completely quit before VB6 off, then the saved file cannot be opened when the phone is switched
Not completely quit before VB6 off, then the saved file cannot be opened when the phone is switched

Time:09-22

An engineering 1. FRM and 4. Bas files, including the modified 2. Bas document cannot be loaded, the other two can be normal open,
Before the shutdown has saved, points out the savepoint sleep mode, and power, the electricity may be dormant unfinished,
This case is?

CodePudding user response:

Bas is a text file, you can use notepad to open, and see what is the difference between and other normal bas,
If the file is damaged, basic didn't save,

Always backup source,
With winrar, for instance in the default compression backup option \ "according to mask the compressed file name", on the right-click menu step can be completed through directory backup,

CodePudding user response:

Ditto
Open notepad rescue code,
Engineering in the new module, from the notepad paste.

CodePudding user response:

Try to use the software EasyRecovery Professional

CodePudding user response:

Point after the save, no matter under what circumstances "abnormal end program", should not be caused. Bas file damage,


However, "facts" so, is just like what is said above,
Open with notepad, delete "illegal content", the "lack of code" building again, and write out,

CodePudding user response:

VB do have such a problem, meet crash, it may damage the file, so it's best to copy out a writing project, and often a backup,

I repaired with notepad. Bas file, the main method is to look at the normal file, looking at the damaged files are missing head, if it is, according to the law add, save, try whether can open in VB,

CodePudding user response:

Commonly used tools also not necessarily can restore a file, so I often backup copy the whole project directory

CodePudding user response:

Sometimes, run while writing code, just write the collapse of the all have no, so sometimes I copy all this module source code and paste to a notepad,

CodePudding user response:

reference 1st floor Tiger_Zhao response:
bas is a text file, you can use notepad to open, see what is the difference between and other normal bas,
If the file is damaged, basic didn't save,

Always backup source,
With winrar, for instance in the default compression backup option \ "according to mask the compressed file name", on the right-click menu step can be completed through directory backup,

Vb6 one problem is that you are editing the code file, it will not automatically save, there are times when you click on the save button, he did not save in, so it is best to have a additional tools, in which module you give him changed, it will automatically give you save to a notepad, this may little take a little memory disk, can also according to the specified format to search him out clear line,

Is to let you to write the file, it is really, very good,
,
I recently in server2016, save the new project, it only saves the form, project file itself will not save it together,
Need I also save again,

CodePudding user response:

Just didn't save the new changes of problem, after the collapse, you will find that the bas file head is covered by garbage data, and file to shorten,

Project can't open it, the main reasons for the file header is the identity of the lost, will be an intact. The bas file header copied, if lucky, it has not been damaged part to control the parameters of the table, it is easy to use a text editor to repair,
  • Related