Anyone still use VB6?

Discuss popular GCS tools like ZZT, Megazeux and Adventure Game Studio, as well as programming and other topics related to game design.
Post Reply
abc123
Newbie
Newbie
Posts: 2
Joined: Sun May 11, 2008 1:11 am

Anyone still use VB6?

Post by abc123 »

I need to know which should come first and explanation?

Unload Me
End

or

End
Unload Me

Thanx
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

I'd guess

Unload Me
End

but I don't think you should need "Unload Me" since End kills the entire app... doesn't it?
abc123
Newbie
Newbie
Posts: 2
Joined: Sun May 11, 2008 1:11 am

Post by abc123 »

Thanx - that was fast!!

I'm not sure what unload me does either LOL
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

abc123 wrote:Thanx - that was fast!!

I'm not sure what unload me does either LOL
My vb6 skills are a bit rusty, but as far as I remember it's for multi-form projects...

Make a project.

Code: Select all

Form1:  frmMain
2 buttons:
cmdNextForm
cmdExit

Form2: frmTwo
1 button:
cmdBack



cmdNextForm:
frmMain.hide 'hides this form, but keeps it alive in memory
unload frmMain 'kills the form from memory

load frmTwo 'initiates frmTwo and loads it into memory
frmTwo.show    'shows the initiated frmTwo

cmdExit:
end 'kills the application

cmdBack:
frmTwo.hide
unload frmTwo
load frmMain
frmMain.show
Hopefully that works... I can't remember if show/hide are . commands or not.

I can't remember the term for it... but "me" I believe is a variable that refers to the form the code is resident in... you should be able to do "me.hide/unload me".
Post Reply