G
Guest
this is my code
Do
Dim nn As String
Dim strNetControl As String = CStr(arlsNetControl.Item(y))
rootDoc.Load(strNetControl)
lsSubNetInst =
rootDoc.SelectNodes("/NetworkController/Subnets/Subnet/SubnetProperties/@NetworkNumber")
str1 = strNetControl.Substring(0, strNetControl.LastIndexOf("."))
For Each nSubNetInst In lsSubNetInst
arlsSubNetInst.Add(nSubNetInst.InnerText)
Next
nn = CStr(arlsSubNetInst.Item(y))
Dim intR As Integer = NxInstNum + 2
strSubNet = str1 + "_" + "200" + "." + nn + "_" + "199" + "." +
CStr(intR) + ".xml"
cboJobSite.Items.Add(strSubNet)
y += 1
Loop Until y = x
what i need is for CStr(intR) to increase by two each time when i loop it
thur. it suppose to loop 12 time and each time the build up on the file alway
end up with same number which is 3752. the variable NxInstNum is 3750.
since it must loop thur 12 time each time the build up file should be
C:\eBuilding\config\client\Data\Site_7415\800.7415_801.101_8.115_200.391_199.3752.xml
then
C:\eBuilding\config\client\Data\Site_7415\800.7415_801.101_8.115_200.391_199.3754.xml
and so on...
does anyone know what i'm doing wrong or missing?
thanks
Do
Dim nn As String
Dim strNetControl As String = CStr(arlsNetControl.Item(y))
rootDoc.Load(strNetControl)
lsSubNetInst =
rootDoc.SelectNodes("/NetworkController/Subnets/Subnet/SubnetProperties/@NetworkNumber")
str1 = strNetControl.Substring(0, strNetControl.LastIndexOf("."))
For Each nSubNetInst In lsSubNetInst
arlsSubNetInst.Add(nSubNetInst.InnerText)
Next
nn = CStr(arlsSubNetInst.Item(y))
Dim intR As Integer = NxInstNum + 2
strSubNet = str1 + "_" + "200" + "." + nn + "_" + "199" + "." +
CStr(intR) + ".xml"
cboJobSite.Items.Add(strSubNet)
y += 1
Loop Until y = x
what i need is for CStr(intR) to increase by two each time when i loop it
thur. it suppose to loop 12 time and each time the build up on the file alway
end up with same number which is 3752. the variable NxInstNum is 3750.
since it must loop thur 12 time each time the build up file should be
C:\eBuilding\config\client\Data\Site_7415\800.7415_801.101_8.115_200.391_199.3752.xml
then
C:\eBuilding\config\client\Data\Site_7415\800.7415_801.101_8.115_200.391_199.3754.xml
and so on...
does anyone know what i'm doing wrong or missing?
thanks