First, the values of a group of controls retrieved by request. Form are separated by commas (,).
If five texts with the same name = name1 are obtained through request. Form ["name"], the values are 1, 2, 4, 5.
We use the split function to convert it to an array: request. Form ["name"]. Split (',');
Then we can handle it at will.
The following is a simple example:
String [] arrid = request. Form ["ID"]. Split (',');//
String [] arrfldname = request. Form ["fldname"]. Split (',');
String [] arrcaption = request. Form ["caption"]. Split (',');
String [] arrfldtype = request. Form ["fldtype"]. Split (',');
String [] arrmaxlength = request. Form ["maxlength"]. Split (',');
String [] arrrelatetbl = request. Form ["relatetbl"]. Split (',');
String [] arrrelateiterator = request. Form ["relateiterator"]. Split (',');
String [] arrbnull = request. Form ["bnull"]. Split (',');
For (INT I = 0; I <arrid. length; I ++)
{
String id = arrid [I]. tostring ();
String fldname = arrfldname [I]. tostring ();
String caption = arrcaption [I]. tostring ();
String fldtype = arrfldtype [I]. tostring ();
String maxlength = arrmaxlength [I]. tostring ();
String relatetbl = arrrelatetbl [I]. tostring ();
String relateiterator = arrrelateiterator [I]. tostring ();
String bnull = arrbnull [I]. tostring ();
}