
Project file...contains invalid key 'Retained'
Quote:
> I've downloaded two projects from the web in recent days and when
attempting
> to open them, I get the error message "The project file [project file
name]
> contains invalid key 'Retained'- Continue loading project?" If I select
> 'Yes', the project continues to load. Attempting to run the run the
project
> generates another error: "Compile error. Invalid outside procedure."
> I'm using VB 5.0 Professional, with service patch 3. Any suggestions?
You are opening a VB6 project with VB5... you can ignore the "invalid key -
retained" error. After opening the project go to each clas module and
delete the few lines of stuff at the very top that it is complaining about.
Save the project to update with those changes.
If the project uses VB6-specific syntax (Replace, Split, returning array
from a function, etc) then you will need to recode those with VB5
alternatives but most of it should be OK.