B
Bob
Hi all,
I'm trying to change the colour and special effect of a rectangle
through a function because I want to have stop and go lights and I
want to be changing them frequently, so my function is like this:
Public Function SwitchOn (BoxName) as String
Form_Home.BoxName.BackColor.Value = 4634122
Form_Home.BoxName.SpecialEffect.Value = "Sunken"
end function
then I call it by using:
switchon (box1) - also tried switchon ("box1")
but it doesn't want to work at all... how do I get the damn thing to
work???? Do I have to set BoxName as a Rectangle or an Object instead
of a string?
Please help!
Cheers,
Bob
I'm trying to change the colour and special effect of a rectangle
through a function because I want to have stop and go lights and I
want to be changing them frequently, so my function is like this:
Public Function SwitchOn (BoxName) as String
Form_Home.BoxName.BackColor.Value = 4634122
Form_Home.BoxName.SpecialEffect.Value = "Sunken"
end function
then I call it by using:
switchon (box1) - also tried switchon ("box1")
but it doesn't want to work at all... how do I get the damn thing to
work???? Do I have to set BoxName as a Rectangle or an Object instead
of a string?
Please help!
Cheers,
Bob