I am currently using SQLite.NET Wrapper from http://www.phpguru.org/static/SQLite.NET.html
I am currently facing a problem on retrieving the data.
My codes are as below...
I am trying to typecast the tempString which is an ArrayList to String. But receive this error "Unable to cast object of type System.Collections.ArrayList to type System.String."
I am new to C#, please kindly teach me how to convert this?
Thanks.
I am currently facing a problem on retrieving the data.
My codes are as below...
C#:
SQLiteResultSet tempResult;
ArrayList tempString;
tempResult = sqlite.Execute("SELECT * FROM MARKET;");
tempString = tempResult.Rows;
for(int i=0; i<tempString.Count; i++)
{
Debug.Print((String)tempString[i]);
}
I am new to C#, please kindly teach me how to convert this?
Thanks.
Last edited by a moderator: