Click to See Complete Forum and Search --> : data type


March 10th, 2000, 05:20 AM
What is "data type conversion error ", I have this message in my program ?

Nick A.
March 10th, 2000, 06:50 AM
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.

TH1
March 10th, 2000, 06:57 AM
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.

Nick A.
March 10th, 2000, 06:59 AM
Yep, that must be the case. I was about to mention that.

Nick A.