accessing multiple buttons

View: New views
3 Messages — Rating Filter:   Alert me  

accessing multiple buttons

by Michael Steinwede-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have 21 check buttons. Instead checking each one individually, I  
won't to check them within two FOR statements similar to the propgram  
below

                For ($day;1;7)
                        For ($hour;1;3)
                                If (checkButton=1)
                                        do something
                                Else
                                        do something different
                                End if
                        End for
                End for
               
The check buttons have the variable name and the object name the same  
and take the form of  cb_11, cb_12, cb_13, cb_21, cb_22 etc.

The idea is to get the 4d to recognize checkButton as cb_11, cb_12, etc.

Is this a possibility and am I barking up the wrong tree?

Any help appreciated.

Michael.
**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Parent Message unknown RE: accessing multiple buttons

by David Samson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael,

The neat option is to use pointers.

Look at the example on "Get Pointer" in the docs.

HTH
David

David Samson
Tailored Ltd

Phone : 0161 975 0050

Fax   : 0161 975 0411

Email : david@...

Web   : www.tailored.org.uk

  > I have 21 check buttons. Instead checking each one

> individually, I won't to check them within two FOR statements
> similar to the propgram below
>
> For ($day;1;7)
> For ($hour;1;3)
> If (checkButton=1)
> do something
> Else
> do something different
> End if
> End for
> End for
>
> The check buttons have the variable name and the object name
> the same and take the form of  cb_11, cb_12, cb_13, cb_21, cb_22 etc.
>
> The idea is to get the 4d to recognize checkButton as cb_11,
> cb_12, etc.

Tailored Ltd. Registered Company No. 5069827
--------------------------------------------------------------------------------

CONFIDENTIALITY NOTICE AND DISCLAIMER

The information in this transmission may be confidential and is intended only for the person or persons to whom it is addressed. If you have received the transmission in error, please immediately contact this office by telephone, fax or email, to inform us of the error and to enable arrangements to be made for the destruction of the transmission.  No liability is accepted for any unauthorised use of the information contained in this transmission.

--------------------------------------------------------------------------------


 



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Re: accessing multiple buttons

by Michael Steinwede-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,

I had tried various combinations with pointers (and other commands)  
without success, but I had not used the Get Pointer command.
I looked at the example in the docs and got my problem solved and  
working within minutes.

Thank you.

Michael.

On 19/02/2008, at 9:08 PM, David Samson wrote:

> Michael,
>
> The neat option is to use pointers.
>
> Look at the example on "Get Pointer" in the docs.
>
> HTH
> David
>
> David Samson
> Tailored Ltd
>
> Phone : 0161 975 0050
>
> Fax   : 0161 975 0411
>
> Email : david@...
>
> Web   : www.tailored.org.uk
>
>> I have 21 check buttons. Instead checking each one
>> individually, I won't to check them within two FOR statements
>> similar to the propgram below
>>
>> For ($day;1;7)
>> For ($hour;1;3)
>> If (checkButton=1)
>> do something
>> Else
>> do something different
>> End if
>> End for
>> End for
>>
>> The check buttons have the variable name and the object name
>> the same and take the form of  cb_11, cb_12, cb_13, cb_21, cb_22 etc.
>>
>> The idea is to get the 4d to recognize checkButton as cb_11,
>> cb_12, etc.
>
> Tailored Ltd. Registered Company No. 5069827
> ----------------------------------------------------------------------
> ----------
>
> CONFIDENTIALITY NOTICE AND DISCLAIMER
>
> The information in this transmission may be confidential and is  
> intended only for the person or persons to whom it is addressed. If  
> you have received the transmission in error, please immediately  
> contact this office by telephone, fax or email, to inform us of the  
> error and to enable arrangements to be made for the destruction of  
> the transmission.  No liability is accepted for any unauthorised  
> use of the information contained in this transmission.
>
> ----------------------------------------------------------------------
> ----------
>
>
>
>
>
>
> **********************************************************************
> 4D Basics hosted by 4D, Inc.                       http://www.4D.com/
>
> Did you know?  The 4D Partner Program now gives you
> access to Hotfix releases as soon as they are available!
> To learn more, go to http://www.4D.com/support/partner.html
>
> To Unsubscribe:                        mailto:4DBasics-off@...
> **********************************************************************
>
>


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************