Hi,
this is just an info what can happen to an analysis. I know how to fix that - making a new analysis and copy the files from the old one and re-arrange files and links. It will just waste some time, at least two days.
There is an analysis with 64 files and 76 links. Not a big thing. This analysis has been tweaked and changed hundreds of times. And now I deleted a single file ("ANFAHRT") and all references to it in the associated program.
Among many other things, in the project's initialization code there is a simple loop to detect and HCreation(..) missing files in the target database:
And now HCreation(MyFileName) throws an error and says, that the deleted file is not in the analysis!
Means: HListFile(..) is able to see and include the deleted file name in MyString, but HCreation(..) is not able to create the file, because it has no info about the file.
Quick solution: I just created a file with the same name and a single item "dummy" in it. When restructuring the file, WD22 complains about a duplicate file name, but it works. I tried to remove / recreate this file for several times but the error stays. So I left it alone and it works for the time being.
Btw. I became a bit skeptical about the file system and could locate two links in the Link-List of the HF-CC which pointed to non-existing (= deleted) files!
this is just an info what can happen to an analysis. I know how to fix that - making a new analysis and copy the files from the old one and re-arrange files and links. It will just waste some time, at least two days.
There is an analysis with 64 files and 76 links. Not a big thing. This analysis has been tweaked and changed hundreds of times. And now I deleted a single file ("ANFAHRT") and all references to it in the associated program.
Among many other things, in the project's initialization code there is a simple loop to detect and HCreation(..) missing files in the target database:
MyString = HListFile("MyProject.wdd","",hLstNormal)+CR
MyLocalI = StringCount(MyString,CR)
FOR MyLocalA = 1 TO MyLocalI
MyFileName = ExtractString(MyString, MyLocalA, CR)
IF NOT HFileExist(MyFileName) THEN
HCreation(MyFileName)
END
END
And now HCreation(MyFileName) throws an error and says, that the deleted file is not in the analysis!
Means: HListFile(..) is able to see and include the deleted file name in MyString, but HCreation(..) is not able to create the file, because it has no info about the file.
Quick solution: I just created a file with the same name and a single item "dummy" in it. When restructuring the file, WD22 complains about a duplicate file name, but it works. I tried to remove / recreate this file for several times but the error stays. So I left it alone and it works for the time being.
Btw. I became a bit skeptical about the file system and could locate two links in the Link-List of the HF-CC which pointed to non-existing (= deleted) files!