'---------以下是自动生成序号-------------------------- Dim i As String = DataTables("表1").Compute("max(序号)") Dim idx As Integer If i > "" Then idx = cint(i.SubString(2,3)) +1 Else idx =1 End If Tables("表1").Current("序号") = "ZL" & ForMAT(idx,"000") '-------以上是自动生成序号-----------------------------