hi... i have query which i m not sure about...
eg: i have this code in VB6;
the code will always jump to the else block no matter what value is store in the field monday... but if i change the = true to =1 then everything works correctly..Code:if temprst.Fields("Monday")= true then some action else some action end if
temprst is declared as ADODB.Recordset, i am using mySQL server 5.5
the Field Monday ha the data type tinyint(1)
i thought that a 1 in tinyint will be treated as true in vb6?




Reply With Quote