How to add data to contacts list

Erel

B4X founder
Staff member
Licensed User
Longtime User
Add a Contact object named Contact and a PimCollection object named PimCol:
B4X:
[LEFT][FONT=Times New Roman][COLOR=#010101]Contact.New1[/COLOR][/FONT]
[FONT=Times New Roman][COLOR=#010101]Contact.CreateNew[/COLOR][/FONT]
[FONT=Times New Roman][COLOR=#010101]Contact.FirstName = "John"[/COLOR][/FONT]
[FONT=Times New Roman][COLOR=#010101]PimCol.New1("Contacts")[/COLOR][/FONT][/LEFT]
[FONT=Times New Roman][COLOR=#010101]PimCol.AddItem(Contact.Value)
[/COLOR][/FONT]
 
Top