|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
True or 1 ?my datafield is "bit" type, I can put 1 or zero into the current item.
e.g bm.current.item("lock") = 1 , (sucesfully) However, if bm.current.item("lock") = 1 then messagebox.show("warning") The above statment didn't work . Finally, I solve that by...if bm.current.item("lock") = true then messagebox.show("warning") I don't understand.. why (1) cannot be used ??? Hi Agnes,
> my datafield is "bit" type, I can put 1 or zero into the current item. "BIT" is a booelan field, so the value "1" is mapped to the boolean value > e.g bm.current.item("lock") = 1 , (sucesfully) > However, if bm.current.item("lock") = 1 then > messagebox.show("warning") The above statment didn't work . Finally, > I solve that by...if bm.current.item("lock") = true then > messagebox.show("warning") I don't understand.. why (1) cannot be used ??? "true" which is a different Datatype in VB.NET. BTW: If bm.CurrentItem("lock") = true is wrong ... correct would be: If bm.CurrentItem("lock") Then ... Regards, Frank Eller www.frankeller.de
2D array of string
Equivalent to Mid function but read from right of the string Opening a browser from vb.net from Help using Right() string function? need clarification from M S Herfried K. Wagner How to set the default value of a date picker to nothing (blank) Datagrid Question Parameter it doesn't work (for me) IIII Setup for VS.Net 2003 get no-integer returned from exe |
|||||||||||||||||||||||