Im working on a treeview with the following structure
accounts
dummy01
00011
00012
00014
dummy02
00012
00015
00018
00019
00025
I need a for loop to go through all account numbers (dummy01, dummy02, dummy04 etc) and find the one that is equal to 'strDummyAccNo' I got as far as the code below but I dont know what to do now. Once an account number is found that is equal to strDummyAccNo, AccNoAttribute is set to the same Account Number.
Need to know how to do the bits in capitals.
Dim intIndexRecon As Integer
Dim intRowCountTV As Integer
intRowCountTV = TVXmlAttributes.Nodes.'HOW MANY CHILD NODES THERE ARE UNDER 'ACCOUNTS' (as integer)
If reconsolidationChk = 1 Then
For intIndexRecon = 0 To intRowCountTV - 1
If TVXmlAttributes.'STRING OF THE INTINDEXRECON (EG "DUMMY02")
= strDummyAccNo (EG "DUMMY02") Then
AccNoAttribute = strDummyAccNo
End If
Next
End If
Thanks guys
K
accounts
dummy01
00011
00012
00014
dummy02
00012
00015
00018
00019
00025
I need a for loop to go through all account numbers (dummy01, dummy02, dummy04 etc) and find the one that is equal to 'strDummyAccNo' I got as far as the code below but I dont know what to do now. Once an account number is found that is equal to strDummyAccNo, AccNoAttribute is set to the same Account Number.
Need to know how to do the bits in capitals.
Dim intIndexRecon As Integer
Dim intRowCountTV As Integer
intRowCountTV = TVXmlAttributes.Nodes.'HOW MANY CHILD NODES THERE ARE UNDER 'ACCOUNTS' (as integer)
If reconsolidationChk = 1 Then
For intIndexRecon = 0 To intRowCountTV - 1
If TVXmlAttributes.'STRING OF THE INTINDEXRECON (EG "DUMMY02")
AccNoAttribute = strDummyAccNo
End If
Next
End If
Thanks guys
K