-developers] How do you loop through check boxes
On Fri, Dec 16, 2011 at 9:08 AM, Knutsford Software
in...@knutsford-software.co.uk wrote:
How do you loop through all the check boxes in thee onclick to the submit
button so that I can see which ones are set and ehich ones aren't
Save them
I have written several check boxes to the screen plus an update button
for(int x = 0 ; x Tempstr.length; x++){
String[] TempTempstr = Tempstr[x].split(@);
CheckBox cb = new CheckBox(v.getContext());
if (TempTempstr[4].equals(1)) {
cb.setChecked(true);
}
cb.setText(TempTempstr[0] + ,
On Fri, Dec 16, 2011 at 9:08 AM, Knutsford Software
i...@knutsford-software.co.uk wrote:
How do you loop through all the check boxes in thee onclick to the submit
button so that I can see which ones are set and ehich ones aren't
Save them in a list .
- Original Message -
From: TreKing
To: android-developers@googlegroups.com
Sent: Friday, December 16, 2011 3:16 PM
Subject: Re: [android-developers] How do you loop through check boxes
On Fri, Dec 16, 2011 at 9:08 AM, Knutsford Software
i...@knutsford-software.co.uk wrote:
How do
On Friday, December 16, 2011 7:27:42 AM UTC-8, plw wrote:
- Original Message -
From: TreKing
To: android-d...@googlegroups.com
Sent: Friday, December 16, 2011 3:16 PM
Subject: Re: [android-developers] How do you loop through check boxes
On Fri, Dec 16, 2011 at 9:08 AM
- Original Message -
From: Lew
To: android-developers@googlegroups.com
Sent: Friday, December 16, 2011 4:21 PM
Subject: Re: [android-developers] How do you loop through check boxes
On Friday, December 16, 2011 7:27:42 AM UTC-8, plw wrote:
- Original Message -
From
On Fri, Dec 16, 2011 at 10:29 AM, Knutsford Software
i...@knutsford-software.co.uk wrote:
It is a straight for then not a foreach?
There is no foreach in Java. If you mean the for (Object o : list)
notation versus a regular for loop ... whatever floats your boat. It should
be irrelevant.
- Original Message -
From: TreKing
To: android-developers@googlegroups.com
Sent: Friday, December 16, 2011 4:59 PM
Subject: Re: [android-developers] How do you loop through check boxes
On Fri, Dec 16, 2011 at 10:29 AM, Knutsford Software
i...@knutsford-software.co.uk wrote
Sorry - ignore my last Email. I need isChecked()
Thnaks for pointing me in the right direction
Pam
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe
9 matches
Mail list logo