SQLite

magi6162

Well-Known Member
Licensed User
If optimize compiler I got error when run the program:
Impossible cast of objects of type System.DBNull on type
System.String

if not optimize compile all ok

Why?

I use bppc 6.30

best regards
 

Allan

New Member
Licensed User
Erel,

I am loading a table w/ cmd.ExecuteTable("tbl1",0) and it puts the nulls in the table columns.

Sub tbl1_SelectionChanged (ColName, Row)
if isnull(tbl1.Cell(ColName,Row)) then tFld.Text="" else tFld.Text = tbl1.Cell(ColName,Row)

Causes 'Specified Cast is Invalid' Error
Is there a way to detect the Nulls?
 
Top