checkboxes

S

simon

Hi,

I want to generate an array of checkboxes but this doesn't work. Can
anyone help, please?

int NumBoxes = 4;
CheckboxField[] Checkbox = new CheckboxField[NumBoxes];

Checkbox[0] = new CheckBoxField("One", false);
Checkbox[1] = new CheckBoxField("Two", false);
Checkbox[2] = new CheckBoxField("Three", false);
Checkbox[3] = new CheckBoxField("Four", false);

add(Checkbox);

Thanks, Simon
 
G

George M Jempty

simon said:
I want to generate an array of checkboxes but this doesn't work. Can
anyone help, please?

int NumBoxes = 4;

Any sort of Javascript debugger you might have availed yourself of
should have choked right here. Your code isn't Javascript: it appears
to be Java.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top