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(filterE xp,
sortExp)
For count = 0 To myTable.Rows.Co unt
Dim changeDate As DateTime =
Convert.ToDateT ime(myData.Tabl es("Information ").Rows(count). Item(count
+ 1))
changeDate = changeDate.AddY ears(1).ToShort DateString()
myData.Tables(" Information").R ows(count).Item (count +
1).Add(changeDa te).
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(filterE xp,
sortExp)
For count = 0 To myTable.Rows.Co unt
Dim changeDate As DateTime =
Convert.ToDateT ime(myData.Tabl es("Information ").Rows(count). Item(count
+ 1))
changeDate = changeDate.AddY ears(1).ToShort DateString()
myData.Tables(" Information").R ows(count).Item (count +
1).Add(changeDa te).
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
Comment