S
samoore33
I have created a xml doc that stores dates. On the first of the year I
want to upload the xml doc into a dataset and then loop through it
adding one year to those dates.
This is what I have attempted.
myData.ReadXml("this.xml")
myTable = myData.Tables("myInformation")
myRow = myData.Tables("myInformation").Select(filterExp,
sortExp)
For count = 0 To myTable.Rows.Count
Dim changeDate As DateTime =
Convert.ToDateTime(myData.Tables("Information").Rows(count).Item(count
+ 1))
changeDate = changeDate.AddYears(1).ToShortDateString()
myData.Tables("Information").Rows(count).Item(count +
1).Add(changeDate).
I am getting an error on this line, Public member 'Add' on type
'String' not found.
Next
I have tried using ToString() and that does not work either.
I know there are easier ways of doing this, but just something I am
messing around with. Any help would be appreciated.
Scott Moore
want to upload the xml doc into a dataset and then loop through it
adding one year to those dates.
This is what I have attempted.
myData.ReadXml("this.xml")
myTable = myData.Tables("myInformation")
myRow = myData.Tables("myInformation").Select(filterExp,
sortExp)
For count = 0 To myTable.Rows.Count
Dim changeDate As DateTime =
Convert.ToDateTime(myData.Tables("Information").Rows(count).Item(count
+ 1))
changeDate = changeDate.AddYears(1).ToShortDateString()
myData.Tables("Information").Rows(count).Item(count +
1).Add(changeDate).
I am getting an error on this line, Public member 'Add' on type
'String' not found.
Next
I have tried using ToString() and that does not work either.
I know there are easier ways of doing this, but just something I am
messing around with. Any help would be appreciated.
Scott Moore