UESP Forums
http://en.uesp.net/forums/

Please help to create a multi-menu MessageBox
http://en.uesp.net/forums/viewtopic.php?f=10&t=41552
Page 1 of 1

Author:  Sergeek [ Mon Aug 21, 2023 8:04 pm ]
Post subject:  Please help to create a multi-menu MessageBox


Author:  Balota [ Sat Aug 26, 2023 6:51 pm ]
Post subject:  Re: Please help to create a multi-menu MessageBox

I've been a VB6 programmer for about 35 years. This isn't that language, but the structure and function of If, ElseIf, EndIf is pretty universal. I think your problem may be pretty simple.

Your first If block in MenuMode checks to see if Choosing = 1. If it does, it sets Choosing = 2 and Choice = -1. So far, so good.

But then you use ElseIf. The problem is that after the program executes the If block, it skips over the ElseIf to the EndIf.

Replace

ElseIf ( Choosing == 2 )

with the following:

EndIf

If (Choosing == 2)

Hope that helps.

Author:  Lord Timster [ Sun Aug 27, 2023 10:58 pm ]
Post subject:  Re: Please help to create a multi-menu MessageBox


Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/