Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IMPORTANT!! loading a vb6 project into vb5 2

Status
Not open for further replies.

Goha

IS-IT--Management
May 9, 2002
91
0
0
US
How do I load a vb6 project into vb5. the code was coded as vb4 and i only had vb6 compiler at the time so now i want to go and and modify the changges and i cannot. I get the following error:

'Retained' is an Invalid key. The File 'c:\....vbp' cannot be loaded

what does this mean?

thanks in advance
 

Open up the vbp file in notepad and look for the keyword "Retained" (it should read Retained=0). Remove this line (make copy first!) and save file then retry to open it up w/ VB5.0.

Good luck
 
Thanks that did the trick.

For my knowledge what does that mean retained???
 

The closest I can find in help is

RetainedProject Property


Returns a value that determines whether a project will remain loaded in memory.

Syntax

object.RetainedProject [= boolean]

The RetainedProject property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
boolean A Boolean expression that specifies whether a project will remain loaded in memory.


Settings

The settings for boolean are:

Setting Description
True A project remains loaded in memory.
False (Default) A project does not remain loaded in memory.

Don't know if that is what it means, but sounds good.

 
The Retained flag is the value of one of the checkboxes on the General Tab of the Project Properties. If refers to keeping the project retained in memory until in terminates. I refer you to the following knowledge base article for the details


You may also need to remove either of the following two lines (if present)

DebugStartupOption=0
CodeViewDebugInfo=0

and

Also, if you use classes, remove the initial lines from the .cls module up to and including the END line. Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top