Article View: comp.os.ms-windows.programmer.tools
Article #270Re: VB: InputBox$ + 2 Option Boxes
From: Galen Raben
Date: Tue, 08 Sep 1992 17:28
Date: Tue, 08 Sep 1992 17:28
39 lines
1784 bytes
1784 bytes
In comp.os.ms-windows.programmer.tools, mkim@wpi.WPI.EDU (Mansig Kim) writes: >Could someone respond to this?? >I am implementing something like "InputBox$ + two option buttons" >(call it MY-INPUT-BOX). ... >Now, the problem is how to interrupt(WAIT) the calling until the user >selects one option button and clicks OK?? >for i = 1 to 10 > call MY-INPUT-BOX > select one option box > WAIT until OK clicked > ^^^^ >next >Here is my way for the WAIT portion. >DO Until OK-clicked > idle(do dummy counting??) >Loop Hmmm... looks like a good way to get locked into an infinite loop. If I understand the problem correctly(????) you can do away with your WAIT loop. The OK command button should already have a click event set up... "Command1_Click" or whatever the cntlname of your OK button is. In the Command1_Click you could try to call your MY-INPUT-BOX. Are you setting this up as a control array or do you have 10 forms set up for each of your input-boxes? If you have 10 forms set up you can make each MODAL and then do a SHOW in the Command1_CLick to go to the next box (and lock the others out). In lieu of the above idea(s) you might try a DO_EVENTS (look in the VB manual) to break the dead-lock you get into in the WAIT portion of your code... Good Luck! - Galen - galenr@hpgrla.gr.com
Technical Details
Message-ID:
<36720012@hpgrla.gr.hp.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hplextra!hpfcso!hpgrla!galenrReferences:
<BtyM24.H04@wpi.WPI.EDU>Show Full Headers
Complete Article Headers
From: galenr@hpgrla.gr.hp.com (Galen Raben) Date: Tue, 8 Sep 1992 17:28:59 GMT Subject: Re: VB: InputBox$ + 2 Option Boxes Message-ID: <36720012@hpgrla.gr.hp.com> Organization: Hewlett-Packard, Greeley, CO Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hplextra!hpfcso!hpgrla!galenr Newsgroups: comp.os.ms-windows.programmer.tools References: <BtyM24.H04@wpi.WPI.EDU> Lines: 40