09-29-2006 03:05 AM
09-29-2006 03:43 AM
hi there,
if the array is empty the code inside the for loop isn't executed at all (because there's no data to handle!). this is called "Auto indexing" of a for loop (see LV documentation for more details). so in this case you just open the recordset and close it afterwards without doing anything with the recordset. thus there is no error code.
only if you pass a non-empty array you actually touch the recordset obhect. i'm not sure, but maybe you need to call the "update" method after the last "AddNew" (i.e. after the for loop) to actually write the data to the recordset.
09-29-2006 06:38 AM
i read the microsoft ADO explain,it said updata would used after addnew .i don't now how to user adobb_recordset to insert a array data .in my example,if the array have any data .the error would occured after the first addnew invonk node.may be the fieldlist not match the values.
who can make a sample?