I heard that working on codes with Option Strict ON give me a better way to learn programming....
Say I have turn the Option Strict ON....
all the coding works well when the option Strict is OFF.....
1) How to convert the error "String to Integer" in this case
2) Secondly, I have this String which take in Integer, how to solve the error "Integer to String" in the second case.
3) Lastly, I have an Xml String and I wanted to display an additional day to it in the Xml String. How to solve thr error "String to Double" in this third case.
Thanks
Say I have turn the Option Strict ON....
all the coding works well when the option Strict is OFF.....
1) How to convert the error "String to Integer" in this case
VB.NET:
Dim data As String
For Each nod As XmlNode In xdoc.SelectNodes("//time")
data = nod.Attributes("hour").Value
cboVHour.SelectedIndex = data
Next
VB.NET:
Dim dd As Integer
dd = Now.Day
lblDay.Text = dd
VB.NET:
XmlString = <OK> dd + 1 </OK>