Hi List,

A quick question: I have a dialog box with 6
checkbox's, every time a checkbox is clicked on I want
a specific array (I have 6 different arrays) to appear
depending on what checkbox was clicked (I used
triggercontrol for this). BUT, Everything in the alter
control code below works so that there is only 1 set
of code to control ALL six checkboxes. But depending
on which checkbox is activated, I want a different
array to be loaded into a popupmenu. How do I do this
without creating reams of code...I thought I could
use

Alter Control XXX Title From Variable Test(X) where
test contains the array names and X the stripped down
ID number of the checkbox, hence replacing Test(X)
with the correct array...it doesn't work..

Any ideas please? I don't want duplicate code and I
believe this method can work...it's all about
efficiency!

Sub CheckBoxHandler
Dim x as integer

X = TriggerControl()

Do Case X

        Case X
        If (ReadControlValue(X)) = 1 Then
        Alter Control left$(str$(X), 1) Title From Variable
**Variable**
        Alter Control left$(str$(X), 1) Show
                StreetControl = TRUE
                Else Alter Control left$(str$(X), 1) Hide
                                StreetControl = FALSE
End If

End Case


End Sub

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to