home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / tools / 838 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.4 KB  |  51 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools
  2. Path: sparky!uunet!noc.near.net!wpi.WPI.EDU!mkim
  3. From: mkim@wpi.WPI.EDU (Mansig Kim)
  4. Subject: VB: InputBox$ + 2 Option Boxes
  5. Message-ID: <BtyM24.H04@wpi.WPI.EDU>
  6. Sender: news@wpi.WPI.EDU (USENET News System)
  7. Nntp-Posting-Host: wpi.wpi.edu
  8. Organization: Worcester Polytechnic Institute
  9. Date: Wed, 2 Sep 1992 16:34:51 GMT
  10. Lines: 39
  11.  
  12. Could someone respond to this??
  13.  
  14. I am implementing something like "InputBox$ + two option buttons" 
  15. (call it MY-INPUT-BOX).
  16.  
  17. Here,  MY-INPUT-BOX is called 10 times (arbitrary number), and each time
  18. user selects one option button and clicks OK, which calls the next 
  19. MY-INPUT-BOX.
  20.  
  21. I could not include option buttons on the InputBox$, so I
  22. created a window with 2 option buttons and 1 commandbutton (for OK) on it.
  23. I still want to call this 10 times.
  24.  
  25. Now, the problem is how to interrupt(WAIT) the calling until the user
  26. selects one option button and clicks OK??
  27.  
  28. for i = 1 to 10
  29.     call MY-INPUT-BOX
  30.     select one option box
  31.     WAIT until OK clicked
  32.     ^^^^
  33. next
  34.  
  35. Here is my way for the WAIT portion.
  36.  
  37. DO Until OK-clicked
  38.    idle(do dummy counting??)
  39. Loop
  40.  
  41. Ok-clicked is initially set to FALSE. But once you click OK button, 
  42. it sets Ok-clicked to True, which gets out of DO-Loop and calls the next
  43. MY-INPUT-BOX. I tried this, but the window's frozen and I should stop the run
  44. with ctrl-brk.
  45.  
  46. Anybody out there to stretch my idea or any other comments??
  47.  
  48. Thanks.
  49.  
  50. Mansig
  51.