Hello all,

I have performed query and kept the data in cursor say mCur.
cursor mCur has 9 column with 22 rows in it.

mCur.moveToFist();
while(!mCur.isAfterLast()){
a)   mNameCol[i] = cur.getString(cur.getColumnIndexOrThrow(CL_NAME));
b)   mAddCol[i]    = cur.getString(cur.getColumnIndexOrThrow(CL_ADD));

     mCur.moveToNext()
}

I can retrieve mNameCol i.e a) successfully, but mAddCol i.e b) stores
always null which is in the next line.
All the column can be retrieved replacing CL_NAME to the respective
column name while it is the first call in the cursor to retrieve, but
in the next line retrieval returns null.
which also means b) always returns null irrespective of the column
retireval and only a) always returns expected value respective to the
column in the cursor.

I suspect the problem with the pointer but restrain finding solution..

Any help would be helpful!!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to