I have a field in my mySQL database which has a dataype of smallint(2). I connected my database to VB 2010 and I can't get the number to display in the textbox. Other numeric values display correctly aside from this one. This particular data only displays TRUE although it is not of the Boolean data type. I checked my BindingSource and indeed VB 2010 recognizes it as boolean when it shouldn't.
Oh my, I saw what's wrong. On VB 2010 I went to the dataset deisgner and found out that the particular field's datatype is system.boolean, I just changed it to system.int16 and everything's working no
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.