database table name = "mytable5" Pop-up prompt ("Total number of records:" > Number of records (database table name) > "Items") Edit box 1. Content = database query ("SELECT wat,tt,lac,pro,fat,sn,id FROM" > database table name > LIMIT 0,'"& take the number of records (database table name)>'","-","\n") 'Query 3 records starting from 0 (the first item). Result = split text (edit box 1. content, "-") i=Number of array members (result) -1 The first i>0 of the judgment cycle Table 1. Add cells (result (i-1), 9, black, &HFFFFFBE8) i=i-1 Judge the loop tail |