fTemp = "C:\temp\temp.txt"
M_File=GETFILE('xls','报名文件')
myexcel=createobject('excel.application') &&创建一个对象
myexcel.DisplayAlerts = .F.
myexcel.visible=.f. &&不可见
myexcel.workbooks.open(M_File) &&打开指定文件
myexcel.Rows("1:1").Select
myexcel.Selection.Delete
myexcel.ActiveWorkBook.SaveAs(fTemp, -4158)
myexcel.ActiveWorkBook.Saved = .T.
myexcel.WorkBooks.Close
myexcel.Quit
USE mdk
ZAP
APPEND FROM (fTemp) FIELDS zbdm,dwdm,hm,name,dm1,xm1,dm2,xm2,dm3,xm3 DELIMITED WITH TAB
BROWSE
DELETE FILE (fTemp)
RETURN