CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: data type

  1. #1
    Guest

    data type

    What is "data type conversion error ", I have this message in my program ?


  2. #2
    Join Date
    Dec 1999
    Posts
    128

    Re: data type

    It means that the type of the value you are trying to assign to a variable is not compatible with the type of the variable. That can happen if you try to assign for example a string to an integer like in the following example:


    dim i as integer

    i="hello"




    Check the types of variables in any assignments in your program.

    Nick A.
    -------------------------
    Nick A.

  3. #3
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: data type

    If your program is using a database I assume you are trying to put a value of the wrong type into one of the columns in a table
    ie. trying to put a string value into a numeric field etc.



  4. #4
    Join Date
    Dec 1999
    Posts
    128

    Re: data type

    Yep, that must be the case. I was about to mention that.

    Nick A.
    -------------------------
    Nick A.

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

Featured