У меня есть приведенный ниже фрагмент кода:
'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()
не останавливает выполнение всего кода в текущей форме и не выгружает себя из памяти?