Имам следния кодов фрагмент:
'Handle level specific properties
Select Case ScoreCard.CurrentDifficulty
Case 1
intImageCount = 2 'This is the number of images to show at any given time on screen +1
'debug
ScoreCard.CurrentDifficulty = 6
Case 2
intImageCount = 3 'This is the number of images to show at any given time on screen +1
Case 3
intImageCount = 5 'This is the number of images to show at any given time on screen +1
Case 4
intImageCount = 2 'This is the number of images to show at any given time on screen +1
Case 5
intImageCount = 5 'This is the number of images to show at any given time on screen +1
Case 6
frmLevel3_HouseOfMirrors.Show()
Me.Close()
Return
End Select
Когато case 6
се изпълнява, frm3_HouseOfMirrors.Show()
се изпълнява и новият ми формуляр се отваря. Me.close
също се изпълнява, но моят проблем е, че след това скриптът стига до линията за връщане. Не би ли трябвало me.Close()
да спре цялото изпълнение на код в текущия формуляр и да се разтовари от паметта?