Results 1 to 6 of 6

Thread: Invalid Key

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    1
    I am having problems using downloaded tutorials.
    After I download the tutorials I unzip them to find I
    get a error when I try to load them into vb5 learning edition. The error is "Retained is an invalid key" Cannot load the Project.

    I also get another error sometimes it states that Cannot find start up sub main.

    Any suggestions on how to deal with these problems.

    thanks tiro

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Open the *.vbp file and remove the line holding:
    Code:
    Retained=1
    It's because retained is some new thing in vb6.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Yeah, open it with Notepad or any other textviewer.

    If you get the Can't find Sub_Main error Click Project > Project Properties > and change the Startup Object
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If it complains about anything else, then repeat for that key.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Guest
    You could also create a new project and add the VB6 forms to the project.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    But when you do that, you will loose the project properties...
    I used notepad when i had vb5 and had that as a second command in the command context menu in explorer for vbp files.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width