Article ID: 194898
Article Last Modified on 6/14/2006
DhCell[] cells = row1.getCells();
if (cells != null) {
for (int i = 0; i < cells.length; ++i)
row1.remove(cells[i]);
}
import com.ms.wfc.html.*;
import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;
public class Class1 extends DhDocument
{
public Class1()
{
initForm();
}
private void initForm()
{
}
protected void onDocumentLoad(Object sender, Event e)
{
this.add(new DhHorizontalRule());
DhTable table=new DhTable();
add(table);
DhRow row1,row2;
DhCell cell;
row1=new DhRow();
table.add(row1);
cell=new DhCell("Cell1");
row1.add(cell);
cell=new DhCell("Cell2");
row1.add(cell);
cell=new DhCell("Cell3");
row1.add(cell);
row2=new DhRow();
table.add(row2);
cell=new DhCell("Cell3");
row2.add(cell);
cell=new DhCell("Cell4");
row2.add(cell);
cell=new DhCell("Cell5");
row2.add(cell);
row1.removeAll();
// to workaround the problem, comment out the above call to removeAll
// and uncomment the following lines:
// DhCell[] cells = row1.getCells();
// if (cells != null) {
// for (int i = 0; i < cells.length; ++i)
// row1.remove(cells[i]);
// }
}
}
<HTML>
<BODY>
<hr>
<OBJECT classid="java:com.ms.wfc.html.DhModule"
height=0 width=0 ... VIEWASTEXT>
<PARAM NAME=__CODECLASS VALUE=Class1>
<PARAM NAME=CABBASE VALUE=Project1.CAB>
</OBJECT>
<!-- Insert HTML here -->
</BODY>
</HTML>
Keywords: kbbug kbfix kbjava kbwfc kbvs600sp3fix KB194898