Charmed Quark Systems, Ltd. - Support Forums and Community
Variable problem with 2 buttons - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: Installation/Configuration (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=10)
+--- Thread: Variable problem with 2 buttons (/showthread.php?tid=2602)



Variable problem with 2 buttons - ellisr63 - 08-01-2007

How can I have 2 buttons turn to on with one command? I would like when the sign is selected to have the sign button and the Today button turn on but if I select "work" have the Sign button still stay on and the work button turn on.[Image: Horoscope.jpg]

Here is my "Aquarius " button
Code:
Devices::FieldWrite(RonsVariables.Horoscope, Aquarius)
GlobalVars::Set Variable(GVar:MyVar, aquarius)
GlobalVars::Set Variable(GVar:MyVar2, Today)
GlobalVars::Set Variable(GVar:MyVar3, Aquarius)
GlobalVars::Set Variable(GVar:MyVar4, January 20-February 19)
GlobalVars::Set Variable(GVar:MyVar5, Daily)
Devices::FieldWrite(RonsVariables.HoroscopeButton2, Today)
Sign Text and dates::Load Overlay(Rack Sign Text V3)
Horoscope-Window::Hide/Show(False)
Devices::Field Write(VarDrv.MyText1, aquarius)

Here is my "Today" button..
Code:
Devices::FieldWrite(RonsVariables.Horoscope, Today)
GlobalVars::Set Variable(GVar:HoroscopeType, Today)
GlobalVars::Set Variable(GVar:MyVar2, Today)
GlobalVars::Set Variable(GVar:MyVar5, Today)
Horoscope-Window::Hide/Show(False)
Sign Text and dates::Load Overlay(Rack Sign Text V3)

tia,
Ron