Results 1 to 4 of 4

Thread: VB.NET: Option Strict ON conversion....[Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    VB.NET: Option Strict ON conversion....[Resolved]

    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
    Code:
    Dim data As String
    For Each nod As XmlNode In xdoc.SelectNodes("//time")
        data = nod.Attributes("hour").Value
        cboVHour.SelectedIndex = data
    Next
    2) Secondly, I have this String which take in Integer, how to solve the error "Integer to String" in the second case.
    Code:
    Dim dd As Integer
    dd = Now.Day
    lblDay.Text = dd
    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.
    Code:
     XmlString = "<OK>" &  dd + 1 & "</OK>"
    Thanks
    Last edited by toytoy; Dec 3rd, 2004 at 07:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width