Results 1 to 3 of 3

Thread: Casting Problem Urgent plz

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    77

    Unhappy Casting Problem Urgent plz

    Hi,

    My prog was working well and progressing a bit more every day, but today I open the project compile it and it doesn't work anymore, after hours of search I finally find where it is blocking.

    IDac = data

    IDac is a integer and data a string, it was working fine, and data is containing a number (like "3" or "12").

    Even if it was working before I tryed to change the method and convert the data :

    IDac = CInt(data)

    But it's still blocking there :/

    Can someone can help me please ?? Maybe a setting in Visual Studio has been desactivated ?

    Thanks for your help

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Try this
    VB Code:
    1. IDac = integer.Parse(data)

    Is Option Strict On , activated ?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    77
    oufff, Thanks you it work with integer.partse, I donno why I didn't work like before.

    Option Strict was certainly on Off cause if I put it on On I have got a lot of error due to some late binding like FileSystemObject2.CopyFile

    So it couldn't be on before.

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