Hi
I try to convert the following 2.0 code to web 3.0. Can anyone help me and provide me a sample?
Thanks.
tgMap1.Layers(0).CustomFields.Clear()
For Each dr In dsTractData1.TractData.Rows
hashTable.Add(dr.FIPS, dr.income_lvl)
hashTable1.Add(dr.FIPS, dr.Loan_Cnt)
hashTable2.Add(dr.FIPS, dr.Loan_Amt)
hashTable3.Add(dr.FIPS, dr.minority_p)
hashTable4.Add(dr.FIPS, dr.sbsf_total)
hashTable5.Add(dr.FIPS, dr.D_AREA)
hashTable6.Add(dr.FIPS, dr.U_AREA)
Next
Dim customField As CustomField = New CustomField
' Clear any exiting custom fields.
'tgMap1.Layers(0).CustomFields.Clear()
' The column that contains our custom data.
customField.CustomFieldName = "income_lvl"
' The column that is in th shape file for our map.
customField.LinkFieldName = "FIPS"
customField.CustomData = hashTable
' Add the custom field to the layer.
tgMap1.Layers(0).CustomFields.Add("income_lvl", customField)
Dim customField1 As CustomField = New CustomField
customField1.CustomFieldName = "Loan_Cnt"
customField1.LinkFieldName = "FIPS"
customField1.CustomData = hashTable1
tgMap1.Layers(0).CustomFields.Add("Loan_Cnt", customField1)
Dim customField2 As CustomField = New CustomField
customField2.CustomFieldName = "Loan_Amt"
customField2.LinkFieldName = "FIPS"
customField2.CustomData = hashTable2
tgMap1.Layers(0).CustomFields.Add("Loan_Amt", customField2)
Dim customField3 As CustomField = New CustomField
customField3.CustomFieldName = "minority_p"
customField3.LinkFieldName = "FIPS"
customField3.CustomData = hashTable3
tgMap1.Layers(0).CustomFields.Add("minority_p", customField3)
................................