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

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

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
 
;

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?

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

hello buddies

firstly the answer was help ful a lol

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

i did frmoptions.Showdialog()

and it worked

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.