🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #369

VB: InputBox$ + 2 Option Boxes

#369
From: Mansig Kim
Date: Wed, 02 Sep 1992 16:34
39 lines
1505 bytes
Could someone respond to this??

I am implementing something like "InputBox$ + two option buttons" 
(call it MY-INPUT-BOX).

Here,  MY-INPUT-BOX is called 10 times (arbitrary number), and each time
user selects one option button and clicks OK, which calls the next 
MY-INPUT-BOX.

I could not include option buttons on the InputBox$, so I
created a window with 2 option buttons and 1 commandbutton (for OK) on it.
I still want to call this 10 times.

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

Ok-clicked is initially set to FALSE. But once you click OK button, 
it sets Ok-clicked to True, which gets out of DO-Loop and calls the next
MY-INPUT-BOX. I tried this, but the window's frozen and I should stop the run
with ctrl-brk.

Anybody out there to stretch my idea or any other comments??

Thanks.

Mansig
Technical Details
Message-ID: <BtyM24.H04@wpi.WPI.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!wpi.WPI.EDU!mkim

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!wpi.WPI.EDU!mkim
From: mkim@wpi.WPI.EDU (Mansig Kim)
Subject: VB: InputBox$ + 2 Option Boxes
Message-ID: <BtyM24.H04@wpi.WPI.EDU>
Sender: news@wpi.WPI.EDU (USENET News System)
Nntp-Posting-Host: wpi.wpi.edu
Organization: Worcester Polytechnic Institute
Date: Wed, 2 Sep 1992 16:34:51 GMT
Lines: 39