Android Question KeyValues - Counting total saved keys

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

I used KeyValues to store several keys with PutSimple1(). I would like to know how to find out what that total number of stored keys is.

Thanks.
 
never used the key stuff myself but you might try this

type you keystorename and the .
and see if there is something like count, lenght, size available.
 
Upvote 0
KVStore.ListKeys.Size

But I have to check: it returns the number of all keys, which include all types of data, including bitmaps

Thanks everyone for your quick replies.

Hi LucaMs,

Thanks for the coding. It worked perfect for my app.

Here's the coding I used:

Code:
intTotalPresetsSaved = kvPresetsList.ListKeys.Size
 
Upvote 0
Back
Top