954,558 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

stopping program to get user input from option buttons

How can I stop processing in a sub so that the user can choose an option button for input?

stan yost
Light Poster
29 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

Hi,

if u want to get users response, create a new form(frmOptions) with all the options and show it in modal form, this way,

frmOptions.Show 1

The Program Halts processing until u close the Modal frmOptions.

Alternatively, u can give options in a Frame and show the frame, but u have to disable other controls on the form and lots of coding has to be done here for that.

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

do u mean how to end a programm if the user wrote something you dont want?
if yes
lets say you need the program to end when the user writes 5

a=val(inputbox(""))
if a=5 then 
end 
end if
 
;
octopus1991
Newbie Poster
4 posts since Nov 2006
Reputation Points: 10
Solved Threads: 1
 
Hi, if u want to get users response, create a new form(frmOptions) with all the options and show it in modal form, this way, frmOptions.Show 1 The Program Halts processing until u close the Modal frmOptions. Alternatively, u can give options in a Frame and show the frame, but u have to disable other controls on the form and lots of coding has to be done here for that. Regards Veena


Thanks, Veena - can you suggest a book that would have information such as you gave me?

stan yost
Light Poster
29 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

Hi,

Check these books,

Teach Yourself Database Programming in VB6 in 21 days,
Mastering VB6 by Evangelos Petroutsos

All teach yourself in 21 days books are good.

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

hello buddies

firstly the answer was help ful a lol

but................. with some modifications!!!!!!!

i did frmoptions.Showdialog()

and it worked

saikrish
Newbie Poster
1 post since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You