|
First build a DBF table, set to JC, this DBF table has the same structure as your EXcel table, then import EXCEL into your table, and then process it.
USE JC
APPEND FFOM EXCEL table name. xls type xl5
lcString1='Select time period'
lcString2=''
lnFieldSum=Fcount('Jc')
For I=2 To lnFieldSum
lcString2=lcString2+lcString1+",'"+Field(I)+"' As content,"+Field(I)+' As percentage From Jc'+Iif(I=lnFieldSum,'',' Union all')
EndFor
&lcString2 |
|