My VB6 app is being re-written in other way, more XXI century. But this is a process and only parts of VB6 app should be dis-abled before the entire app will be put to sleep.
I would like to have a simple way of making certain controls on the Form not visible. My idea is to have a simple table in the DB where I can list controls that I need to hide, something like:
[pre]
FORM CONTROL
frmForm1 cmdGo
frmForm1 cmdStop
frmForm1 fraPizza
frmComp cmdX
[/pre]
I can easily loop thru all the controls on the Form and when control’s name = data from that table, I can make it Visible = False
The question is – what if I have a set of option buttons in a control array:[tt]
optSelect(0)
optSelect(1)
optSelect(2)
optSelect(3)[/tt]
how can I deal with them if I want to ‘catch’ just [tt]optSelect(2)[/tt] and not the other options?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
I would like to have a simple way of making certain controls on the Form not visible. My idea is to have a simple table in the DB where I can list controls that I need to hide, something like:
[pre]
FORM CONTROL
frmForm1 cmdGo
frmForm1 cmdStop
frmForm1 fraPizza
frmComp cmdX
[/pre]
I can easily loop thru all the controls on the Form and when control’s name = data from that table, I can make it Visible = False
The question is – what if I have a set of option buttons in a control array:[tt]
optSelect(0)
optSelect(1)
optSelect(2)
optSelect(3)[/tt]
how can I deal with them if I want to ‘catch’ just [tt]optSelect(2)[/tt] and not the other options?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson