![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I must be losing my mind - i should have included this in the original post.
The error message says: 'An error occurred on sub (sub name) NullReferenceException Continue? (y/n)' Gary ![]()
__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3 PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6 |
|
||||
|
I made the change you suggested, but the problem persists.
The Outlook.dll version is 1.0.2900.27127. The OutlookDesktop.dll version is 1.0.2900.27246. The entire program is attached. Gary
__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3 PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6 |
|
||||
|
Yes, IsNull will not help here.
Contact.WebPage will only work properly if the contact's webpage field is a valid URL. The "http://" prefix is also required. This is a limitation of the underlying .Net CF method. The only workaround I can think of is to catch this error: Code:
spouse = contact.Spouse
suffix = contact.Suffix
title = contact.Title
website = GetWebsite
table1.AddRow(... )
Next
End Sub
Sub GetWebsite
ErrorLabel(errGetWebsite)
Return contact.WebPage
errGetWebsite:
Return ""
End Sub
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lookup Contacts using a listbox | thartung | Questions & Help Needed | 9 | 02-27-2008 09:16 AM |
| Outlook library and contacts list | lancaster | Questions & Help Needed | 2 | 02-08-2008 09:26 AM |
| Contacts and List Boxes | Oran | Questions & Help Needed | 9 | 01-22-2008 07:08 PM |
| Access to Outlook contacts | Big JR | Code Samples & Tips | 3 | 09-26-2007 10:16 AM |