I really do not understand, and all my studies have only confused me further.
Code snippet:
namespace Family_Finances
{
class sqlStuff
{
private SQLiteConnection m_dbConnection;
//DialogResult msgBoxResult = DialogResult.Ignore;
//string myDirectory;
public int beepFreq = 880;
public int beepLength = 500;
private SQLiteConnection dbConn;
private string dbSelect()
{
what I am trying to do is create a class, never mind that I am not even referencing it yet, that is reusable and places all my sqlite support code into a class.
I've reverted back to the original code because I've tried all the built-in corrections and the dung heap keeps getting deeper, including changing code in the main Namespace where it's not even referenced.
I want my db_conn available throughout the class so that I don't have to pass it to/from every reference...
Two concepts I know I have trouble with...
"Using" and "IDisposable"
(I didn't know "Using" implied a "Dispose()" and I didn't need a "Close()". Good grief my code worked and I'd never seen an example with "Dispose()" in it. Maybe it would be easier to go back to pastoral studies and learn classical Greek? But, I do love to code...)
So how do I fix this so I can reuse the code in other projects as well as this one...
Please be gentle... I am self taught... And, there are obviously holes (deep wells) in my understanding on the Framework and C#. Thanks!