j =1
For i = 1 to integer(dw_x.Object.DataWindow.Column.Count)
tempszColumn = dw_x.describe("#"+string(i)+".name")
If upper(dw_x.Describe(tempszColumn+".Key")) = "YES" Then
//字段名称
szColumn[j] = tempszColumn
//字段类型
szType[j] = dw_x.describe("#"+string(i)+".coltype")
//传递倒结构里面中去
lgstr_1[j].columnname = szColumn[j]
lgstr_1[j].columntype = szType[j]
j = j + 1
End If
next