Shay Well-Known Member Licensed User Longtime User Jan 11, 2012 #1 Hi Is there a easy (fast) way to get number of your phone contacts - <I FOUND THE ANSWER> Contacts_Size=MyContact.GetAll(False,False).Size <CAN YOU ANSWER THIS:> Now that I know how man contacts I have, how can I read it one by one, without adding all to list since I wish to add it into table Also Is there a way to read only phone contacts OR Sim contacts only Last edited: Jan 11, 2012
Hi Is there a easy (fast) way to get number of your phone contacts - <I FOUND THE ANSWER> Contacts_Size=MyContact.GetAll(False,False).Size <CAN YOU ANSWER THIS:> Now that I know how man contacts I have, how can I read it one by one, without adding all to list since I wish to add it into table Also Is there a way to read only phone contacts OR Sim contacts only
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2012 #2 MyContact.GetAll creates a list. You should use this list to both measure the number of items and to go over the list and add the data to a table. Don't call GetAll multiple times. Instead call it once and use the returned list. Upvote 0
MyContact.GetAll creates a list. You should use this list to both measure the number of items and to go over the list and add the data to a table. Don't call GetAll multiple times. Instead call it once and use the returned list.
Shay Well-Known Member Licensed User Longtime User Jan 12, 2012 #3 1. So there is no way to add the contacts directly to db table? 2. How can I read only the contact on the phone and not on the sim? Upvote 0
1. So there is no way to add the contacts directly to db table? 2. How can I read only the contact on the phone and not on the sim?
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2012 #4 1. No. GetAll returns a list. 2. I don't think that it is possible. Upvote 0