Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

SQLite Columns

$
0
0

Hello

I'm trying to post an Email Address to a textbox in my program. I created a database with ten email address columns I tried setting the type to varchar and got an exception

error when I would add an @ symbol to the column data, only when I tried to query the data from the column. So I changed them to "text" type and was able to post to textboxes with out error. And then I also tried setting the column type to "BLOB" and I'm getting the same error. But the problem i'm having now is

I cant use the following method to query the data on an empty column. Here is the error I get:{"Specified cast is not valid."}

Here is the method:

stringtEmail3 = dr.GetString(21);

"dr" is the SQLite datareader

If there is a email address in the column it wont error out!

I cant find the value of tEmail3 when I breakpoint on the line.

Could you please help me.


michael r demulling


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>