| | |
Rnu-Time Error: 380 - Invalid property value
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
Good morning everybody:
I am attempting to populate a listview control on Form Load()
and I get a Run-Time Error: 380 - Invalid property value. Below is the line to generates the error:
Below is alos my entire FormLoad module:
Any help will b greatly appreciated
Thanks,
tgifgemini.
I am attempting to populate a listview control on Form Load()
and I get a Run-Time Error: 380 - Invalid property value. Below is the line to generates the error:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
lvw.ListItems(lvw.ListItems.Count).SubItems(1) = OutlookAddressEntry.Address
Below is alos my entire FormLoad module:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub Form_Load() Set OutlookApp = New Outlook.Application Set OutlookMailItem = OutlookApp.CreateItem(olMailItem) Set OutlookNameSpace = OutlookApp.GetNamespace("MAPI") lvw.ListItems.Clear For Each OutlookAddressList In OutlookNameSpace.AddressLists For Each OutlookAddressEntry In OutlookAddressList.AddressEntries lvw.ListItems.Add , , OutlookAddressEntry.Name lvw.ListItems(lvw.ListItems.Count).SubItems(1) = OutlookAddressEntry.Address lvw.ListItems(lvw.ListItems.Count).SubItems(2) = OutlookAddressEntry.ID lvw.ListItems(lvw.ListItems.Count).Tag = OutlookAddressEntry.ID Next Next End Sub
Any help will b greatly appreciated
Thanks,
tgifgemini.
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
I changed my codes to:
But I still get compile error: 380 - Invalid property value.
sorry for the inconveniences.
tgifgemini.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
lvw.ListItems.Add , , OutlookAddressEntry.Name lvw.ListItems(lvw.ListItems.Count).SubItems(1) = OutlookAddressEntry.Address lvw.ListItems(lvw.ListItems.Count).SubItems(2) = OutlookAddressEntry.ID lvw.ListItems(lvw.ListItems.Count).Tag = OutlookAddressEntry.ID
But I still get compile error: 380 - Invalid property value.
sorry for the inconveniences.
tgifgemini.
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
Sorry my mistake. I changed my codes to:
But I got the same compile error: 380-invalid property value.
tgifgmini.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
lvw.ListItems.Add , , OutlookAddressEntry.Name lvw.ListItems(lvw.ListItems.Coun-1t).SubItems(1) = OutlookAddressEntry.Address lvw.ListItems(lvw.ListItems.Count-1).SubItems(2) = OutlookAddressEntry.ID lvw.ListItems(lvw.ListItems.Count-1).Tag = OutlookAddressEntry.ID
But I got the same compile error: 380-invalid property value.
tgifgmini.
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
Now I got the above title error on the code below:
Thanks
tgifgemini.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
lvw.ListItems(lvw.ListItems.Count - 1).SubItems(1) = OutlookAddressEntry.Address
Thanks
tgifgemini.
![]() |
Similar Threads
- VB6 - Look up email address from outlook address book? (Visual Basic 4 / 5 / 6)
- Visualbasic - Timer Interval Help (Visual Basic 4 / 5 / 6)
- Run-Time Error..? (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: report
- Next Thread: HELP!!!! im making my thesis and i have a problem..
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





