View Single Post
  #1 (permalink)  
Old 05-13-2008, 02:44 PM
willisgt's Avatar
willisgt willisgt is offline
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default Problem with Contacts

This bit of code crashes for some strange reason:

Code:
	Contact.New1
	ContactsCollection.New1( "Contacts" )

	ContactsCollection.SortItems( "LastName", false )

	For i = 0 To ContactsCollection.Count - 1

		Contact.Value = ContactsCollection.GetItem(i)
		
		ListBox1.Add( Contact.FirstName & " " & Contact.LastName )


		website	= contact.WebPage

                          msgbox( website )

	Next

The problem is on the line:

Code:
		website	= contact.WebPage
(I'm sure because if I comment it out, it works.)

Any ideas?


Gary

__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote