Hi, I'm using the same code for MySql and SqLite versions of my program and I'd like to point out that using
ro=sql[0];
can behave rather quirky.. in combination with functions like Sum() or Count()
Depending of which db you use, Count, Sum etc. could be presented as int or a String type. Confusing.
A better way (especially if you would select more than one column) is to use the As function: