Click to See Complete Forum and Search --> : Problems loading project


February 28th, 2000, 12:10 PM
I got some projects from internet. When I open , i get an error: retained: unknown keyword, or something. What is wrong

Cakkie
February 28th, 2000, 12:18 PM
I've know this problem, you're using VB5 and try to open a VB6 project. VB6 uses the key retained, wich VB5 doesn't know. To bypass this problem, select (using explorer) the project and rename it to myProject.txt. Now open it in notepad. Search for a line beginning with retained, this will look something like retained=0, select the line, and delete it. If you try it now, it should work, if you get the same error, but a different keyword, do the same, and remove that keyword-line. I'm not sure, but I think you might get an error on MaxNumberOfThreads. When you have deleted all the erroneus lines, rename it back to .vbp and open it in VB.
Please note that the author might have used some commands that only apply to VB6 (like split, replace). You will need to program them yourself!!!
Further side-effects of this solution are not known to me, maybe someone else knows any?

Tom Cannaerts
slisse@planetinternet.be

The best way to escape a problem, is to solve it.